#5F249C#5F249C

#5F249C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.181 H 301.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5F249C
RGBrgb(95, 36, 156)
HSLhsl(270, 63%, 38%)
HSVhsv(270, 77%, 61%)
CMYKcmyk(39.1%, 76.9%, 0%, 38.8%)
CIE-LABlab(29.65, 49.45, -54.30)
CIE-LCHlch(29.65, 73.44, 312.32°)
OKLaboklab(41.59% 0.0932 -0.155)
OKLCHoklch(41.59% 0.181 301)
XYZxyz(11.3495, 6.0949, 32.0245)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F249C #619C24
analogous
#24259C #5F249C #9B249C
triadic
#5F249C #9C5F24 #249C5F
tetradic
#5F249C #9C2425 #619C24 #249C9B
square
#5F249C #9C2425 #619C24 #249C9B
split-complementary
#5F249C #9C9B24 #259C24
monochromatic
#220D39 #41196A #5F249C #7D2FCE #9C60DA

Accessibility & contrast

On white

9.46
#5F249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F249C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F249C#FFFFFF#000000##FFFFFF
##5F249C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#51435F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f249c;
/* rgb */ color: rgb(95, 36, 156);
/* oklch */ color: oklch(41.6% 0.181 301.0);
Tailwind
colors: {
  custom: {
    50: '#9265ba',
    500: '#5f249c',
    950: '#000000',
  },
}
SCSS
$custom: #5f249c;
$custom-light: #9265ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f249c",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 269.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41588,
    "c": 0.18088,
    "h": 301
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#5F249C
secondary
#8FBF5C
accent
#E64295
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F249C

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

Preview Lab → · Contrast checker → · Palette generator →

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