#5F2799#5F2799

#5F2799 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.174 H 301.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5F2799
RGBrgb(95, 39, 153)
HSLhsl(269, 59%, 38%)
HSVhsv(269, 75%, 60%)
CMYKcmyk(37.9%, 74.5%, 0%, 40%)
CIE-LABlab(29.87, 47.36, -52.11)
CIE-LCHlch(29.87, 70.41, 312.27°)
OKLaboklab(41.67% 0.0911 -0.1486)
OKLCHoklch(41.67% 0.174 301.5)
XYZxyz(11.1932, 6.1838, 30.7347)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2799 #619927
analogous
#272899 #5F2799 #982799
triadic
#5F2799 #995F27 #27995F
tetradic
#5F2799 #992728 #619927 #279998
square
#5F2799 #992728 #619927 #279998
split-complementary
#5F2799 #999827 #289927
monochromatic
#220E37 #411B68 #5F2799 #7D33CA #9C63D7

Accessibility & contrast

On white

9.39
#5F2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2799
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2799#FFFFFF#000000##FFFFFF
##5F27991.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#52435E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2799;
/* rgb */ color: rgb(95, 39, 153);
/* oklch */ color: oklch(41.7% 0.174 301.5);
Tailwind
colors: {
  custom: {
    50: '#9267b8',
    500: '#5f2799',
    950: '#000000',
  },
}
SCSS
$custom: #5f2799;
$custom-light: #9267b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2799",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 269.474,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.1743,
    "h": 301.5
  },
  "luminance": 0.06184
}

Semantic roles & 50–950 ramp

primary
#5F2799
secondary
#8FBD5F
accent
#E34595
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2799

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

Preview Lab → · Contrast checker → · Palette generator →

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