#5F2F97#5F2F97

#5F2F97 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.162 H 300.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5F2F97
RGBrgb(95, 47, 151)
HSLhsl(268, 53%, 39%)
HSVhsv(268, 69%, 59%)
CMYKcmyk(37.1%, 68.9%, 0%, 40.8%)
CIE-LABlab(31.11, 42.93, -48.87)
CIE-LCHlch(31.11, 65.04, 311.30°)
OKLaboklab(42.5% 0.083 -0.1391)
OKLCHoklch(42.5% 0.162 300.8)
XYZxyz(11.3204, 6.7002, 29.9690)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F97 #67972F
analogous
#2F3397 #5F2F97 #932F97
triadic
#5F2F97 #975F2F #2F975F
tetradic
#5F2F97 #972F33 #67972F #2F9793
square
#5F2F97 #972F33 #67972F #2F9793
split-complementary
#5F2F97 #97932F #33972F
monochromatic
#24123A #422068 #5F2F97 #7D40C3 #9C6ED2

Accessibility & contrast

On white

8.97
#5F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2F97
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F97#FFFFFF#000000##FFFFFF
##5F2F971.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2f97;
/* rgb */ color: rgb(95, 47, 151);
/* oklch */ color: oklch(42.5% 0.162 300.8);
Tailwind
colors: {
  custom: {
    50: '#916bb6',
    500: '#5f2f97',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f97;
$custom-light: #916bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f97",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 267.692,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42501,
    "c": 0.16203,
    "h": 300.8
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5F2F97
secondary
#94B968
accent
#DC4C99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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