#5F289A#5F289A

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

Color values

HEX#5F289A
RGBrgb(95, 40, 154)
HSLhsl(269, 59%, 38%)
HSVhsv(269, 74%, 60%)
CMYKcmyk(38.3%, 74%, 0%, 39.6%)
CIE-LABlab(30.12, 47.15, -52.32)
CIE-LCHlch(30.12, 70.43, 312.02°)
OKLaboklab(41.87% 0.0899 -0.1493)
OKLCHoklch(41.87% 0.174 301)
XYZxyz(11.3094, 6.2835, 31.1826)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F289A #639A28
analogous
#282A9A #5F289A #98289A
triadic
#5F289A #9A5F28 #289A5F
tetradic
#5F289A #9A282A #639A28 #289A98
square
#5F289A #9A282A #639A28 #289A98
split-complementary
#5F289A #9A9828 #2A9A28
monochromatic
#230F39 #411B69 #5F289A #7D35CA #9C65D7

Accessibility & contrast

On white

9.31
#5F289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F289A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F289A#FFFFFF#000000##FFFFFF
##5F289A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004698
Tritanopia (blue-blind)
#52445F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f289a;
/* rgb */ color: rgb(95, 40, 154);
/* oklch */ color: oklch(41.9% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#9267b9',
    500: '#5f289a',
    950: '#000000',
  },
}
SCSS
$custom: #5f289a;
$custom-light: #9267b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f289a",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 268.947,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41865,
    "c": 0.17422,
    "h": 301
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#5F289A
secondary
#91BD61
accent
#E24697
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F289A

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

Preview Lab → · Contrast checker → · Palette generator →

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