Nearest named color · #5A798B
#5A798B
Nearest named color: Whale Shark
#5A798B (rgb(90 121 139), hsl(202 21% 45%), oklch(0.559 0.045 234.1)) is closest to the named color Whale Shark. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5A798B
oklch(0.559 0.045 234.1)
Color conversions
- HEX
- #5a798b
- RGB
- rgb(90 121 139)
- HSL
- hsl(202 21% 45%)
- HWB
- hwb(202 35% 45%)
- OKLCH
- oklch(0.559 0.045 234.1)
- OKLab
- oklab(0.559 -0.027 -0.037)
- CIE Lab
- lab(48.94 -7.97 -13.63)
- LCH
- lch(48.94 15.79 239.7)
- CMYK
- cmyk(35% 13% 0% 45%)
Tints · Shades · Tones
Tints
- 6A8696
- 7992A1
- 899FAD
- 99ADB8
- AABAC4
- BAC7CF
- CBD5DB
- DCE3E7
- EEF1F3
Shades
- 4D6878
- 415866
- 354854
- 293943
- 1E2B32
- 131D23
- 091014
- 030507
- 000101
Tones
- 5E7A8A
- 627B89
- 667B88
- 6A7C87
- 6E7D86
- 717D85
- 757E83
- 797F82
- 7C7F81
Color harmonies
Complementary +180°
- 5A798B
Whale Shark
- 8A6D5B
≈ Antiquities
Analogous -30° +30°
- 5A798B
Whale Shark
- 547C80
≈ Labradorite Green
- 67748F
≈ Niche
Triadic +120° +240°
- 5A798B
Whale Shark
- 8A6976
≈ Plum Dandy
- 737859
≈ Finch
Split-complementary +150° +210°
- 5A798B
Whale Shark
- 8D6A67
≈ Western Clay
- 817256
≈ Becker Gold
Tetradic +90° +180° +270°
- 5A798B
Whale Shark
- 826B83
≈ Parma Grey
- 8A6D5B
≈ Antiquities
- 647B64
≈ Mildura
Contrast & accessibility
Ag
AAOn white
WCAG 4.62:1 · APCA Lc 72
Ag
AAOn black
WCAG 4.54:1 · APCA Lc 30
Best text color: #FFFFFF
WCAG 4.62:1 (AA) · APCA Lc 72
Contrast pairs
Code snippets
CSS
:root {
--whale-shark: #5a798b;
--whale-shark-rgb: 90 121 139;
--whale-shark-oklch: oklch(0.559 0.045 234.1);
}
.element {
color: var(--whale-shark);
background-color: hsl(202 21% 45%);
border-color: oklch(0.559 0.045 234.1);
}Tailwind CSS v4
@theme {
--color-whale-shark: #5a798b;
--color-whale-shark-50: #eaf8ff;
--color-whale-shark-100: #daebf5;
--color-whale-shark-200: #c3d8e5;
--color-whale-shark-300: #a2bccc;
--color-whale-shark-400: #85a3b5;
--color-whale-shark-500: #698ca0;
--color-whale-shark-600: #597687;
--color-whale-shark-700: #475f6c;
--color-whale-shark-800: #334550;
--color-whale-shark-900: #223037;
--color-whale-shark-950: #111c22;
}SCSS
$whale-shark: #5a798b;
$whale-shark-rgb: 90, 121, 139;
$whale-shark-light: mix(#fff, $whale-shark, 20%);
$whale-shark-dark: mix(#000, $whale-shark, 20%);
.element {
color: $whale-shark;
box-shadow: 0 0 0 2px rgba($whale-shark, 0.35);
}