#5F2F99#5F2F99

#5F2F99 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.164 H 300.2°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5F2F99
RGBrgb(95, 47, 153)
HSLhsl(267, 53%, 39%)
HSVhsv(267, 69%, 60%)
CMYKcmyk(37.9%, 69.3%, 0%, 40%)
CIE-LABlab(31.27, 43.45, -49.84)
CIE-LCHlch(31.27, 66.12, 311.08°)
OKLaboklab(42.66% 0.0827 -0.142)
OKLCHoklch(42.66% 0.164 300.2)
XYZxyz(11.4842, 6.7657, 30.8317)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2F99 #69992F
analogous
#2F3499 #5F2F99 #942F99
triadic
#5F2F99 #995F2F #2F995F
tetradic
#5F2F99 #992F34 #69992F #2F9994
square
#5F2F99 #992F34 #69992F #2F9994
split-complementary
#5F2F99 #99942F #34992F
monochromatic
#25123B #42216A #5F2F99 #7C41C5 #9D6FD3

Accessibility & contrast

On white

8.92
#5F2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2F99
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2F99#FFFFFF#000000##FFFFFF
##5F2F991.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#524860
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2f99;
/* rgb */ color: rgb(95, 47, 153);
/* oklch */ color: oklch(42.7% 0.164 300.2);
Tailwind
colors: {
  custom: {
    50: '#916bb8',
    500: '#5f2f99',
    950: '#000000',
  },
}
SCSS
$custom: #5f2f99;
$custom-light: #916bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2f99",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 267.17,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42659,
    "c": 0.16435,
    "h": 300.2
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#5F2F99
secondary
#96BA69
accent
#DC4B9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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