#5F249B#5F249B

#5F249B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.180 H 301.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5F249B
RGBrgb(95, 36, 155)
HSLhsl(270, 62%, 37%)
HSVhsv(270, 77%, 61%)
CMYKcmyk(38.7%, 76.8%, 0%, 39.2%)
CIE-LABlab(29.57, 49.20, -53.83)
CIE-LCHlch(29.57, 72.92, 312.43°)
OKLaboklab(41.5% 0.0934 -0.1537)
OKLCHoklch(41.5% 0.18 301.3)
XYZxyz(11.2651, 6.0611, 31.5804)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F249B #609B24
analogous
#24249B #5F249B #9B249B
triadic
#5F249B #9B5F24 #249B5F
tetradic
#5F249B #9B2424 #609B24 #249B9B
square
#5F249B #9B2424 #609B24 #249B9B
split-complementary
#5F249B #9B9B24 #249B24
monochromatic
#220D38 #411869 #5F249B #7D30CD #9C5FDA

Accessibility & contrast

On white

9.49
#5F249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F249B
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F249B#FFFFFF#000000##FFFFFF
##5F249B1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#52435E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f249b;
/* rgb */ color: rgb(95, 36, 155);
/* oklch */ color: oklch(41.5% 0.180 301.3);
Tailwind
colors: {
  custom: {
    50: '#9265b9',
    500: '#5f249b',
    950: '#000000',
  },
}
SCSS
$custom: #5f249b;
$custom-light: #9265b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f249b",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 269.748,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41502,
    "c": 0.17982,
    "h": 301.3
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#5F249B
secondary
#8EBF5C
accent
#E54295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F249B

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

Preview Lab → · Contrast checker → · Palette generator →

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