#5F2C85#5F2C85

#5F2C85 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.145 H 307.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5F2C85
RGBrgb(95, 44, 133)
HSLhsl(274, 50%, 35%)
HSVhsv(274, 67%, 52%)
CMYKcmyk(28.6%, 66.9%, 0%, 47.8%)
CIE-LABlab(29.23, 39.92, -40.80)
CIE-LCHlch(29.23, 57.08, 314.38°)
OKLaboklab(40.73% 0.0885 -0.1154)
OKLCHoklch(40.73% 0.145 307.5)
XYZxyz(9.8528, 5.9278, 22.8109)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2C85 #52852C
analogous
#332C85 #5F2C85 #852C7F
triadic
#5F2C85 #855F2C #2C855F
tetradic
#5F2C85 #85332C #52852C #2C7F85
square
#5F2C85 #85332C #52852C #2C7F85
split-complementary
#5F2C85 #7F852C #2C8533
monochromatic
#1D0E29 #3E1D57 #5F2C85 #803BB3 #9D61CB

Accessibility & contrast

On white

9.61
#5F2C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F2C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2C85
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2C85#FFFFFF#000000##FFFFFF
##5F2C851.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#1A4583
Tritanopia (blue-blind)
#593F54
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2c85;
/* rgb */ color: rgb(95, 44, 133);
/* oklch */ color: oklch(40.7% 0.145 307.5);
Tailwind
colors: {
  custom: {
    50: '#9069a9',
    500: '#5f2c85',
    950: '#000000',
  },
}
SCSS
$custom: #5f2c85;
$custom-light: #9069a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2c85",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 274.382,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40728,
    "c": 0.14545,
    "h": 307.5
  },
  "luminance": 0.05928
}

Semantic roles & 50–950 ramp

primary
#5F2C85
secondary
#80B15C
accent
#DA4E8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F2C85

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

Preview Lab → · Contrast checker → · Palette generator →

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