#5F2D87#5F2D87

#5F2D87 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.146 H 306.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5F2D87
RGBrgb(95, 45, 135)
HSLhsl(273, 50%, 35%)
HSVhsv(273, 67%, 53%)
CMYKcmyk(29.6%, 66.7%, 0%, 47.1%)
CIE-LABlab(29.56, 39.89, -41.51)
CIE-LCHlch(29.56, 57.58, 313.86°)
OKLaboklab(41.01% 0.0871 -0.1175)
OKLCHoklch(41.01% 0.146 306.6)
XYZxyz(10.0299, 6.0590, 23.5581)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D87 #55872D
analogous
#322D87 #5F2D87 #872D82
triadic
#5F2D87 #875F2D #2D875F
tetradic
#5F2D87 #87322D #55872D #2D8287
square
#5F2D87 #87322D #55872D #2D8287
split-complementary
#5F2D87 #82872D #2D8732
monochromatic
#1E0E2B #3F1E59 #5F2D87 #7F3CB5 #9D63CB

Accessibility & contrast

On white

9.49
#5F2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D87
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D87#FFFFFF#000000##FFFFFF
##5F2D871.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#184685
Tritanopia (blue-blind)
#584056
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2d87;
/* rgb */ color: rgb(95, 45, 135);
/* oklch */ color: oklch(41.0% 0.146 306.6);
Tailwind
colors: {
  custom: {
    50: '#9069aa',
    500: '#5f2d87',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d87;
$custom-light: #9069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d87",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 273.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.14629,
    "h": 306.6
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#5F2D87
secondary
#83B25E
accent
#DA4E8C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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