#5F2499#5F2499

#5F2499 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.178 H 301.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5F2499
RGBrgb(95, 36, 153)
HSLhsl(270, 62%, 37%)
HSVhsv(270, 76%, 60%)
CMYKcmyk(37.9%, 76.5%, 0%, 40%)
CIE-LABlab(29.40, 48.70, -52.88)
CIE-LCHlch(29.40, 71.89, 312.65°)
OKLaboklab(41.33% 0.0939 -0.1509)
OKLCHoklch(41.33% 0.178 301.9)
XYZxyz(11.0986, 5.9945, 30.7032)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2499 #5E9924
analogous
#242499 #5F2499 #992499
triadic
#5F2499 #995F24 #24995F
tetradic
#5F2499 #992424 #5E9924 #249999
square
#5F2499 #992424 #5E9924 #249999
split-complementary
#5F2499 #999924 #249924
monochromatic
#210D36 #401867 #5F2499 #7E30CB #9C5ED9

Accessibility & contrast

On white

9.55
#5F2499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2499 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2499
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2499#FFFFFF#000000##FFFFFF
##5F24991.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#52425D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2499;
/* rgb */ color: rgb(95, 36, 153);
/* oklch */ color: oklch(41.3% 0.178 301.9);
Tailwind
colors: {
  custom: {
    50: '#9265b8',
    500: '#5f2499',
    950: '#000000',
  },
}
SCSS
$custom: #5f2499;
$custom-light: #9265b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2499",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 270.256,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41332,
    "c": 0.1777,
    "h": 301.9
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#5F2499
secondary
#8CBE5B
accent
#E54393
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2499

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

Preview Lab → · Contrast checker → · Palette generator →

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