#5C168F#5C168F

#5C168F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.181 H 305.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5C168F
RGBrgb(92, 22, 143)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35.7%, 84.6%, 0%, 43.9%)
CIE-LABlab(26.25, 51.19, -51.87)
CIE-LCHlch(26.25, 72.88, 314.62°)
OKLaboklab(38.78% 0.1037 -0.1479)
OKLCHoklch(38.78% 0.181 305)
XYZxyz(9.6573, 4.8324, 26.4052)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168F #498F16
analogous
#20168F #5C168F #8F1685
triadic
#5C168F #8F5C16 #168F5C
tetradic
#5C168F #8F2016 #498F16 #16858F
square
#5C168F #8F2016 #498F16 #16858F
split-complementary
#5C168F #858F16 #168F20
monochromatic
#180625 #3A0E5A #5C168F #7E1EC4 #9D3EE1

Accessibility & contrast

On white

10.68
#5C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C168F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168F#FFFFFF#000000##FFFFFF
##5C168F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c168f;
/* rgb */ color: rgb(92, 22, 143);
/* oklch */ color: oklch(38.8% 0.181 305.0);
Tailwind
colors: {
  custom: {
    50: '#905eb1',
    500: '#5c168f',
    950: '#000000',
  },
}
SCSS
$custom: #5c168f;
$custom-light: #905eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168f",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 274.711,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38778,
    "c": 0.18064,
    "h": 305
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#5C168F
secondary
#76C13F
accent
#F03885
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C168F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5C168F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva