#5F2E8F#5F2E8F

#5F2E8F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.154 H 303.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5F2E8F
RGBrgb(95, 46, 143)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 68%, 56%)
CMYKcmyk(33.6%, 67.8%, 0%, 43.9%)
CIE-LABlab(30.33, 41.39, -45.23)
CIE-LCHlch(30.33, 61.31, 312.46°)
OKLaboklab(41.75% 0.0852 -0.1284)
OKLCHoklch(41.75% 0.154 303.5)
XYZxyz(10.6531, 6.3701, 26.6496)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E8F #5E8F2E
analogous
#2E2E8F #5F2E8F #8F2E8F
triadic
#5F2E8F #8F5F2E #2E8F5F
tetradic
#5F2E8F #8F2E2E #5E8F2E #2E8F8F
square
#5F2E8F #8F2E2E #5E8F2E #2E8F8F
split-complementary
#5F2E8F #8F8F2E #2E8F2E
monochromatic
#211032 #401F61 #5F2E8F #7E3DBD #9C69CF

Accessibility & contrast

On white

9.23
#5F2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2E8F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E8F#FFFFFF#000000##FFFFFF
##5F2E8F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#0A478D
Tritanopia (blue-blind)
#56445A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2e8f;
/* rgb */ color: rgb(95, 46, 143);
/* oklch */ color: oklch(41.7% 0.154 303.5);
Tailwind
colors: {
  custom: {
    50: '#906ab0',
    500: '#5f2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e8f;
$custom-light: #906ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e8f",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 270.309,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41747,
    "c": 0.15412,
    "h": 303.5
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#5F2E8F
secondary
#8CB663
accent
#DB4D93
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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