#5F2A87#5F2A87

#5F2A87 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.151 H 307.1°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F2A87
RGBrgb(95, 42, 135)
HSLhsl(274, 53%, 35%)
HSVhsv(274, 69%, 53%)
CMYKcmyk(29.6%, 68.9%, 0%, 47.1%)
CIE-LABlab(29.00, 41.44, -42.42)
CIE-LCHlch(29.00, 59.30, 314.33°)
OKLaboklab(40.61% 0.0907 -0.1202)
OKLCHoklch(40.61% 0.151 307.1)
XYZxyz(9.9195, 5.8382, 23.5213)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A87 #52872A
analogous
#312A87 #5F2A87 #872A80
triadic
#5F2A87 #875F2A #2A875F
tetradic
#5F2A87 #87312A #52872A #2A8087
square
#5F2A87 #87312A #52872A #2A8087
split-complementary
#5F2A87 #80872A #2A8731
monochromatic
#1D0D2A #3E1B58 #5F2A87 #8039B6 #9D5ECD

Accessibility & contrast

On white

9.69
#5F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A87
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A87#FFFFFF#000000##FFFFFF
##5F2A871.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#583E55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2a87;
/* rgb */ color: rgb(95, 42, 135);
/* oklch */ color: oklch(40.6% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#9068ab',
    500: '#5f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a87;
$custom-light: #9068ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a87",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 274.194,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40609,
    "c": 0.15057,
    "h": 307.1
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#5F2A87
secondary
#80B35A
accent
#DC4C8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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