#5F249F#5F249F

#5F249F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.184 H 300.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5F249F
RGBrgb(95, 36, 159)
HSLhsl(269, 63%, 38%)
HSVhsv(269, 77%, 62%)
CMYKcmyk(40.3%, 77.4%, 0%, 37.6%)
CIE-LABlab(29.91, 50.19, -55.71)
CIE-LCHlch(29.91, 74.98, 312.02°)
OKLaboklab(41.85% 0.0924 -0.1592)
OKLCHoklch(41.85% 0.184 300.1)
XYZxyz(11.6066, 6.1977, 33.3790)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F249F #649F24
analogous
#24279F #5F249F #9C249F
triadic
#5F249F #9F5F24 #249F5F
tetradic
#5F249F #9F2427 #649F24 #249F9C
square
#5F249F #9F2427 #649F24 #249F9C
split-complementary
#5F249F #9F9C24 #279F24
monochromatic
#230D3B #41196D #5F249F #7D30D0 #9C62DB

Accessibility & contrast

On white

9.38
#5F249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F249F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F249F#FFFFFF#000000##FFFFFF
##5F249F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#504460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f249f;
/* rgb */ color: rgb(95, 36, 159);
/* oklch */ color: oklch(41.8% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#9365bc',
    500: '#5f249f',
    950: '#000000',
  },
}
SCSS
$custom: #5f249f;
$custom-light: #9365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f249f",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 268.78,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.18404,
    "h": 300.1
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#5F249F
secondary
#91C15E
accent
#E64297
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F249F

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

Preview Lab → · Contrast checker → · Palette generator →

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