#5F2D91#5F2D91

#5F2D91 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.158 H 303.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5F2D91
RGBrgb(95, 45, 145)
HSLhsl(270, 53%, 37%)
HSVhsv(270, 69%, 57%)
CMYKcmyk(34.5%, 69%, 0%, 43.1%)
CIE-LABlab(30.29, 42.41, -46.52)
CIE-LCHlch(30.29, 62.95, 312.35°)
OKLaboklab(41.77% 0.0861 -0.1322)
OKLCHoklch(41.77% 0.158 303.1)
XYZxyz(10.7673, 6.3540, 27.4418)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D91 #5F912D
analogous
#2D2D91 #5F2D91 #912D91
triadic
#5F2D91 #915F2D #2D915F
tetradic
#5F2D91 #912D2D #5F912D #2D9191
square
#5F2D91 #912D2D #5F912D #2D9191
split-complementary
#5F2D91 #91912D #2D912D
monochromatic
#221034 #401F62 #5F2D91 #7E3BC0 #9C68D0

Accessibility & contrast

On white

9.25
#5F2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5F2D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D91
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D91#FFFFFF#000000##FFFFFF
##5F2D911.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#55445B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2d91;
/* rgb */ color: rgb(95, 45, 145);
/* oklch */ color: oklch(41.8% 0.158 303.1);
Tailwind
colors: {
  custom: {
    50: '#916ab2',
    500: '#5f2d91',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d91;
$custom-light: #916ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d91",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 270,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41766,
    "c": 0.1578,
    "h": 303.1
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#5F2D91
secondary
#8DB763
accent
#DC4C94
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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