#5F2E9A#5F2E9A

#5F2E9A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.167 H 300.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5F2E9A
RGBrgb(95, 46, 154)
HSLhsl(267, 54%, 39%)
HSVhsv(267, 70%, 60%)
CMYKcmyk(38.3%, 70.1%, 0%, 39.6%)
CIE-LABlab(31.16, 44.22, -50.62)
CIE-LCHlch(31.16, 67.21, 311.14°)
OKLaboklab(42.61% 0.0837 -0.1443)
OKLCHoklch(42.61% 0.167 300.1)
XYZxyz(11.5276, 6.7199, 31.2553)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E9A #699A2E
analogous
#2E339A #5F2E9A #952E9A
triadic
#5F2E9A #9A5F2E #2E9A5F
tetradic
#5F2E9A #9A2E33 #699A2E #2E9A95
square
#5F2E9A #9A2E33 #699A2E #2E9A95
split-complementary
#5F2E9A #9A952E #339A2E
monochromatic
#25123C #42206B #5F2E9A #7C3FC6 #9D6FD4

Accessibility & contrast

On white

8.96
#5F2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E9A
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E9A#FFFFFF#000000##FFFFFF
##5F2E9A1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#524860
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2e9a;
/* rgb */ color: rgb(95, 46, 154);
/* oklch */ color: oklch(42.6% 0.167 300.1);
Tailwind
colors: {
  custom: {
    50: '#916bb9',
    500: '#5f2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e9a;
$custom-light: #916bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e9a",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 267.222,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.1668,
    "h": 300.1
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#5F2E9A
secondary
#96BB69
accent
#DD4A9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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