#5F2185#5F2185

#5F2185 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.160 H 309.1°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2185
RGBrgb(95, 33, 133)
HSLhsl(277, 60%, 33%)
HSVhsv(277, 75%, 52%)
CMYKcmyk(28.6%, 75.2%, 0%, 47.8%)
CIE-LABlab(27.34, 45.21, -43.86)
CIE-LCHlch(27.34, 62.99, 315.87°)
OKLaboklab(39.38% 0.101 -0.1243)
OKLCHoklch(39.38% 0.16 309.1)
XYZxyz(9.4960, 5.2142, 22.6920)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2185 #478521
analogous
#2D2185 #5F2185 #852179
triadic
#5F2185 #855F21 #21855F
tetradic
#5F2185 #852D21 #478521 #217985
square
#5F2185 #852D21 #478521 #217985
split-complementary
#5F2185 #798521 #21852D
monochromatic
#190923 #3C1554 #5F2185 #822DB6 #A04DD3

Accessibility & contrast

On white

10.28
#5F2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2185
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2185#FFFFFF#000000##FFFFFF
##5F21851.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#054183
Tritanopia (blue-blind)
#593851
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2185;
/* rgb */ color: rgb(95, 33, 133);
/* oklch */ color: oklch(39.4% 0.160 309.1);
Tailwind
colors: {
  custom: {
    50: '#9063a9',
    500: '#5f2185',
    950: '#000000',
  },
}
SCSS
$custom: #5f2185;
$custom-light: #9063a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2185",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 277.2,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.1602,
    "h": 309.1
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#5F2185
secondary
#74B64C
accent
#E34481
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2185

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

Preview Lab → · Contrast checker → · Palette generator →

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