#5F2F87#5F2F87

#5F2F87 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.143 H 306.2°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2F87
RGBrgb(95, 47, 135)
HSLhsl(273, 48%, 36%)
HSVhsv(273, 65%, 53%)
CMYKcmyk(29.6%, 65.2%, 0%, 47.1%)
CIE-LABlab(29.95, 38.83, -40.89)
CIE-LCHlch(29.95, 56.39, 313.52°)
OKLaboklab(41.29% 0.0846 -0.1157)
OKLCHoklch(41.29% 0.143 306.2)
XYZxyz(10.1081, 6.2153, 23.5841)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F87 #57872F
analogous
#332F87 #5F2F87 #872F83
triadic
#5F2F87 #875F2F #2F875F
tetradic
#5F2F87 #87332F #57872F #2F8387
square
#5F2F87 #87332F #57872F #2F8387
split-complementary
#5F2F87 #83872F #2F8733
monochromatic
#1F0F2C #3F1F5A #5F2F87 #7F3FB4 #9D66CA

Accessibility & contrast

On white

9.36
#5F2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F87
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F87#FFFFFF#000000##FFFFFF
##5F2F871.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#1B4785
Tritanopia (blue-blind)
#584156
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2f87;
/* rgb */ color: rgb(95, 47, 135);
/* oklch */ color: oklch(41.3% 0.143 306.2);
Tailwind
colors: {
  custom: {
    50: '#906baa',
    500: '#5f2f87',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f87;
$custom-light: #906baa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f87",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 272.727,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41292,
    "c": 0.14334,
    "h": 306.2
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#5F2F87
secondary
#85B161
accent
#D8508E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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