Nearest named color · #5168B6
#5168B6
Nearest named color: Starstruck
#5168B6 (rgb(81 104 182), hsl(226 41% 52%), oklch(0.537 0.125 269.5)) is closest to the named color Starstruck. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#5168B6
oklch(0.537 0.125 269.5)
Color conversions
- HEX
- #5168b6
- RGB
- rgb(81 104 182)
- HSL
- hsl(226 41% 52%)
- HWB
- hwb(226 32% 29%)
- OKLCH
- oklch(0.537 0.125 269.5)
- OKLab
- oklab(0.537 -0.001 -0.125)
- CIE Lab
- lab(45.07 9.29 -44.79)
- LCH
- lch(45.07 45.74 281.7)
- CMYK
- cmyk(55% 43% 0% 29%)
Tints · Shades · Tones
Tints
- 6177BE
- 7186C6
- 8195CE
- 92A4D5
- A4B3DD
- B5C2E4
- C7D1EB
- DAE0F2
- ECF0F8
Shades
- 45599E
- 3A4B86
- 2F3E6F
- 243059
- 1A2444
- 101830
- 070C1D
- 02040C
- 000002
Tones
- 556BB1
- 5A6EAC
- 5F71A7
- 6373A2
- 68769C
- 6D7897
- 727A92
- 767C8C
- 7B7E86
Color harmonies
Complementary +180°
- 5168B6
Starstruck
- 876A00
≈ Muddy Brown
Analogous -30° +30°
- 5168B6
Starstruck
- 0075AC
≈ Reef Escape
- 795BAB
≈ Genestealer Purple
Triadic +120° +240°
- 5168B6
Starstruck
- AA4D41
≈ Squig Orange
- 2B8144
≈ Bold Irish
Split-complementary +150° +210°
- 5168B6
Starstruck
- A15904
≈ Windsor Brown
- 667705
≈ Topiary Green
Tetradic +90° +180° +270°
- 5168B6
Starstruck
- A64B6B
≈ Ancient Fuchsia
- 876A00
≈ Muddy Brown
- 00806F
≈ Tropical Green
Contrast & accessibility
Ag
AAOn white
WCAG 5.24:1 · APCA Lc 76
Ag
FailOn black
WCAG 4.00:1 · APCA Lc 26
Best text color: #FFFFFF
WCAG 5.24:1 (AA) · APCA Lc 76
Contrast pairs
Code snippets
CSS
:root {
--starstruck: #5168b6;
--starstruck-rgb: 81 104 182;
--starstruck-oklch: oklch(0.537 0.125 269.5);
}
.element {
color: var(--starstruck);
background-color: hsl(226 41% 52%);
border-color: oklch(0.537 0.125 269.5);
}Tailwind CSS v4
@theme {
--color-starstruck: #5168b6;
--color-starstruck-50: #e8f4ff;
--color-starstruck-100: #d8e6ff;
--color-starstruck-200: #c1d2ff;
--color-starstruck-300: #a0b4f8;
--color-starstruck-400: #819ae9;
--color-starstruck-500: #6580d9;
--color-starstruck-600: #566cb7;
--color-starstruck-700: #445793;
--color-starstruck-800: #2f406e;
--color-starstruck-900: #202c4d;
--color-starstruck-950: #101933;
}SCSS
$starstruck: #5168b6;
$starstruck-rgb: 81, 104, 182;
$starstruck-light: mix(#fff, $starstruck, 20%);
$starstruck-dark: mix(#000, $starstruck, 20%);
.element {
color: $starstruck;
box-shadow: 0 0 0 2px rgba($starstruck, 0.35);
}