#5F2D97#5F2D97

#5F2D97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.165 H 301.2°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#5F2D97
RGBrgb(95, 45, 151)
HSLhsl(268, 54%, 38%)
HSVhsv(268, 70%, 59%)
CMYKcmyk(37.1%, 70.2%, 0%, 40.8%)
CIE-LABlab(30.75, 43.95, -49.46)
CIE-LCHlch(30.75, 66.17, 311.62°)
OKLaboklab(42.24% 0.0852 -0.1409)
OKLCHoklch(42.24% 0.165 301.2)
XYZxyz(11.2423, 6.5440, 29.9430)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D97 #65972D
analogous
#2D3097 #5F2D97 #942D97
triadic
#5F2D97 #975F2D #2D975F
tetradic
#5F2D97 #972D30 #65972D #2D9794
square
#5F2D97 #972D30 #65972D #2D9794
split-complementary
#5F2D97 #97942D #30972D
monochromatic
#241139 #411F68 #5F2D97 #7D3CC5 #9C6BD3

Accessibility & contrast

On white

9.10
#5F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D97
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D97#FFFFFF#000000##FFFFFF
##5F2D971.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#53465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2d97;
/* rgb */ color: rgb(95, 45, 151);
/* oklch */ color: oklch(42.2% 0.165 301.2);
Tailwind
colors: {
  custom: {
    50: '#916ab6',
    500: '#5f2d97',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d97;
$custom-light: #916ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d97",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 268.302,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42237,
    "c": 0.16466,
    "h": 301.2
  },
  "luminance": 0.06544
}

Semantic roles & 50–950 ramp

primary
#5F2D97
secondary
#92BA66
accent
#DD4A98
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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