#5F2D85#5F2D85

#5F2D85 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.144 H 307.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5F2D85
RGBrgb(95, 45, 133)
HSLhsl(274, 49%, 35%)
HSVhsv(274, 66%, 52%)
CMYKcmyk(28.6%, 66.2%, 0%, 47.8%)
CIE-LABlab(29.42, 39.40, -40.49)
CIE-LCHlch(29.42, 56.50, 314.21°)
OKLaboklab(40.87% 0.0873 -0.1145)
OKLCHoklch(40.87% 0.144 307.3)
XYZxyz(9.8905, 6.0032, 22.8235)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D85 #53852D
analogous
#332D85 #5F2D85 #852D7F
triadic
#5F2D85 #855F2D #2D855F
tetradic
#5F2D85 #85332D #53852D #2D7F85
square
#5F2D85 #85332D #53852D #2D7F85
split-complementary
#5F2D85 #7F852D #2D8533
monochromatic
#1E0E2A #3E1E57 #5F2D85 #803CB3 #9D62CA

Accessibility & contrast

On white

9.54
#5F2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D85
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D85#FFFFFF#000000##FFFFFF
##5F2D851.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#593F55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2d85;
/* rgb */ color: rgb(95, 45, 133);
/* oklch */ color: oklch(40.9% 0.144 307.3);
Tailwind
colors: {
  custom: {
    50: '#9069a9',
    500: '#5f2d85',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d85;
$custom-light: #9069a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d85",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 274.091,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40866,
    "c": 0.14398,
    "h": 307.3
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#5F2D85
secondary
#81B05D
accent
#D94F8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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