#5F289B#5F289B

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

Color values

HEX#5F289B
RGBrgb(95, 40, 155)
HSLhsl(269, 59%, 38%)
HSVhsv(269, 74%, 61%)
CMYKcmyk(38.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(30.20, 47.40, -52.80)
CIE-LCHlch(30.20, 70.95, 311.92°)
OKLaboklab(41.95% 0.0896 -0.1507)
OKLCHoklch(41.95% 0.175 300.8)
XYZxyz(11.3930, 6.3170, 31.6230)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F289B #649B28
analogous
#282A9B #5F289B #98289B
triadic
#5F289B #9B5F28 #289B5F
tetradic
#5F289B #9B282A #649B28 #289B98
square
#5F289B #9B282A #649B28 #289B98
split-complementary
#5F289B #9B9828 #2A9B28
monochromatic
#230F3A #411B6A #5F289B #7D35CB #9C66D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F289B#FFFFFF#000000##FFFFFF
##5F289B1.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)
#00479E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#52455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f289b;
/* rgb */ color: rgb(95, 40, 155);
/* oklch */ color: oklch(41.9% 0.175 300.8);
Tailwind
colors: {
  custom: {
    50: '#9267b9',
    500: '#5f289b',
    950: '#000000',
  },
}
SCSS
$custom: #5f289b;
$custom-light: #9267b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f289b",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 268.696,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41948,
    "c": 0.17531,
    "h": 300.8
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#5F289B
secondary
#91BD61
accent
#E24697
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5F289B

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

Preview Lab → · Contrast checker → · Palette generator →

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