#5F2E97#5F2E97

#5F2E97 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.163 H 301.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5F2E97
RGBrgb(95, 46, 151)
HSLhsl(268, 53%, 39%)
HSVhsv(268, 70%, 59%)
CMYKcmyk(37.1%, 69.5%, 0%, 40.8%)
CIE-LABlab(30.93, 43.44, -49.17)
CIE-LCHlch(30.93, 65.61, 311.46°)
OKLaboklab(42.37% 0.0841 -0.14)
OKLCHoklch(42.37% 0.163 301)
XYZxyz(11.2809, 6.6212, 29.9558)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E97 #66972E
analogous
#2E3197 #5F2E97 #932E97
triadic
#5F2E97 #975F2E #2E975F
tetradic
#5F2E97 #972E31 #66972E #2E9793
square
#5F2E97 #972E31 #66972E #2E9793
split-complementary
#5F2E97 #97932E #31972E
monochromatic
#241139 #412068 #5F2E97 #7D3EC4 #9C6DD2

Accessibility & contrast

On white

9.04
#5F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E97
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E97#FFFFFF#000000##FFFFFF
##5F2E971.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#53475F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2e97;
/* rgb */ color: rgb(95, 46, 151);
/* oklch */ color: oklch(42.4% 0.163 301.0);
Tailwind
colors: {
  custom: {
    50: '#916ab6',
    500: '#5f2e97',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e97;
$custom-light: #916ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e97",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 268,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42368,
    "c": 0.16335,
    "h": 301
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#5F2E97
secondary
#93BA67
accent
#DD4B99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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