#5F2B97#5F2B97

#5F2B97 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.167 H 301.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5F2B97
RGBrgb(95, 43, 151)
HSLhsl(269, 56%, 38%)
HSVhsv(269, 72%, 59%)
CMYKcmyk(37.1%, 71.5%, 0%, 40.8%)
CIE-LABlab(30.39, 44.95, -50.04)
CIE-LCHlch(30.39, 67.27, 311.93°)
OKLaboklab(41.98% 0.0874 -0.1426)
OKLCHoklch(41.98% 0.167 301.5)
XYZxyz(11.1678, 6.3950, 29.9181)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2B97 #63972B
analogous
#2B2D97 #5F2B97 #952B97
triadic
#5F2B97 #975F2B #2B975F
tetradic
#5F2B97 #972B2D #63972B #2B9795
square
#5F2B97 #972B2D #63972B #2B9795
split-complementary
#5F2B97 #97952B #2D972B
monochromatic
#231038 #411D67 #5F2B97 #7D39C7 #9C68D4

Accessibility & contrast

On white

9.21
#5F2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2B97
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2B97#FFFFFF#000000##FFFFFF
##5F2B971.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#53455E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f2b97;
/* rgb */ color: rgb(95, 43, 151);
/* oklch */ color: oklch(42.0% 0.167 301.5);
Tailwind
colors: {
  custom: {
    50: '#9169b6',
    500: '#5f2b97',
    950: '#000000',
  },
}
SCSS
$custom: #5f2b97;
$custom-light: #9169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2b97",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 268.889,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.16723,
    "h": 301.5
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#5F2B97
secondary
#91BB63
accent
#DF4997
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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