#5F2999#5F2999

#5F2999 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.172 H 301.2°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2999
RGBrgb(95, 41, 153)
HSLhsl(269, 58%, 38%)
HSVhsv(269, 73%, 60%)
CMYKcmyk(37.9%, 73.2%, 0%, 40%)
CIE-LABlab(30.20, 46.42, -51.57)
CIE-LCHlch(30.20, 69.39, 311.99°)
OKLaboklab(41.9% 0.0891 -0.1471)
OKLCHoklch(41.9% 0.172 301.2)
XYZxyz(11.2606, 6.3186, 30.7572)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2999 #639929
analogous
#292B99 #5F2999 #972999
triadic
#5F2999 #995F29 #29995F
tetradic
#5F2999 #99292B #639929 #299997
square
#5F2999 #99292B #639929 #299997
split-complementary
#5F2999 #999729 #2B9929
monochromatic
#230F38 #411C69 #5F2999 #7D36C9 #9C66D6

Accessibility & contrast

On white

9.28
#5F2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2999
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2999#FFFFFF#000000##FFFFFF
##5F29991.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#52455E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2999;
/* rgb */ color: rgb(95, 41, 153);
/* oklch */ color: oklch(41.9% 0.172 301.2);
Tailwind
colors: {
  custom: {
    50: '#9268b8',
    500: '#5f2999',
    950: '#000000',
  },
}
SCSS
$custom: #5f2999;
$custom-light: #9268b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2999",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 268.929,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.419,
    "c": 0.17193,
    "h": 301.2
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#5F2999
secondary
#91BC62
accent
#E14797
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2999

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

Preview Lab → · Contrast checker → · Palette generator →

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