#5F2097#5F2097

#5F2097 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.180 H 303.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2097
RGBrgb(95, 32, 151)
HSLhsl(272, 65%, 36%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(37.1%, 78.8%, 0%, 40.8%)
CIE-LABlab(28.64, 49.90, -52.88)
CIE-LCHlch(28.64, 72.71, 313.34°)
OKLaboklab(40.75% 0.098 -0.1509)
OKLCHoklch(40.75% 0.18 303)
XYZxyz(10.8204, 5.7003, 29.8024)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2097 #589720
analogous
#242097 #5F2097 #972093
triadic
#5F2097 #975F20 #20975F
tetradic
#5F2097 #972420 #589720 #209397
square
#5F2097 #972420 #589720 #209397
split-complementary
#5F2097 #939720 #209724
monochromatic
#1F0B32 #3F1564 #5F2097 #7F2BC9 #9D56DB

Accessibility & contrast

On white

9.81
#5F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2097
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2097#FFFFFF#000000##FFFFFF
##5F20971.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#533F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2097;
/* rgb */ color: rgb(95, 32, 151);
/* oklch */ color: oklch(40.8% 0.180 303.0);
Tailwind
colors: {
  custom: {
    50: '#9263b6',
    500: '#5f2097',
    950: '#000000',
  },
}
SCSS
$custom: #5f2097;
$custom-light: #9263b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2097",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 271.765,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4075,
    "c": 0.17987,
    "h": 303
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#5F2097
secondary
#86BF54
accent
#E8408F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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