#5F2494#5F2494

#5F2494 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.172 H 303.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F2494
RGBrgb(95, 36, 148)
HSLhsl(272, 61%, 36%)
HSVhsv(272, 76%, 58%)
CMYKcmyk(35.8%, 75.7%, 0%, 42%)
CIE-LABlab(28.99, 47.48, -50.48)
CIE-LCHlch(28.99, 69.30, 313.24°)
OKLaboklab(40.91% 0.095 -0.1438)
OKLCHoklch(40.91% 0.172 303.5)
XYZxyz(10.6942, 5.8328, 28.5737)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2494 #599424
analogous
#272494 #5F2494 #942491
triadic
#5F2494 #945F24 #24945F
tetradic
#5F2494 #942724 #599424 #249194
square
#5F2494 #942724 #599424 #249194
split-complementary
#5F2494 #919424 #249427
monochromatic
#200C32 #3F1863 #5F2494 #7F30C5 #9D5BD7

Accessibility & contrast

On white

9.69
#5F2494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F2494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2494
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2494#FFFFFF#000000##FFFFFF
##5F24941.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#54405A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2494;
/* rgb */ color: rgb(95, 36, 148);
/* oklch */ color: oklch(40.9% 0.172 303.5);
Tailwind
colors: {
  custom: {
    50: '#9265b4',
    500: '#5f2494',
    950: '#000000',
  },
}
SCSS
$custom: #5f2494;
$custom-light: #9265b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2494",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 271.607,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.17239,
    "h": 303.5
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

primary
#5F2494
secondary
#87BC58
accent
#E44490
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2494

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

Preview Lab → · Contrast checker → · Palette generator →

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