#5F249E#5F249E

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

Color values

HEX#5F249E
RGBrgb(95, 36, 158)
HSLhsl(269, 63%, 38%)
HSVhsv(269, 77%, 62%)
CMYKcmyk(39.9%, 77.2%, 0%, 38%)
CIE-LABlab(29.82, 49.94, -55.24)
CIE-LCHlch(29.82, 74.47, 312.12°)
OKLaboklab(41.76% 0.0926 -0.1578)
OKLCHoklch(41.76% 0.183 300.4)
XYZxyz(11.5202, 6.1632, 32.9238)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F249E #639E24
analogous
#24269E #5F249E #9C249E
triadic
#5F249E #9E5F24 #249E5F
tetradic
#5F249E #9E2426 #639E24 #249E9C
square
#5F249E #9E2426 #639E24 #249E9C
split-complementary
#5F249E #9E9C24 #269E24
monochromatic
#230D3A #41196C #5F249E #7D2FD0 #9C61DB

Accessibility & contrast

On white

9.41
#5F249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F249E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F249E#FFFFFF#000000##FFFFFF
##5F249E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f249e;
/* rgb */ color: rgb(95, 36, 158);
/* oklch */ color: oklch(41.8% 0.183 300.4);
Tailwind
colors: {
  custom: {
    50: '#9365bc',
    500: '#5f249e',
    950: '#000000',
  },
}
SCSS
$custom: #5f249e;
$custom-light: #9365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f249e",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 269.016,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.18299,
    "h": 300.4
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#5F249E
secondary
#91C05E
accent
#E64297
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F249E

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

Preview Lab → · Contrast checker → · Palette generator →

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