#5F2491#5F2491

#5F2491 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.169 H 304.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5F2491
RGBrgb(95, 36, 145)
HSLhsl(272, 60%, 35%)
HSVhsv(272, 75%, 57%)
CMYKcmyk(34.5%, 75.2%, 0%, 43.1%)
CIE-LABlab(28.74, 46.74, -49.03)
CIE-LCHlch(28.74, 67.74, 313.63°)
OKLaboklab(40.67% 0.0957 -0.1396)
OKLCHoklch(40.67% 0.169 304.4)
XYZxyz(10.4599, 5.7390, 27.3393)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2491 #569124
analogous
#282491 #5F2491 #91248C
triadic
#5F2491 #915F24 #24915F
tetradic
#5F2491 #912824 #569124 #248C91
square
#5F2491 #912824 #569124 #248C91
split-complementary
#5F2491 #8C9124 #249128
monochromatic
#1F0C2F #3F1860 #5F2491 #7F30C2 #9D59D6

Accessibility & contrast

On white

9.78
#5F2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2491
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2491#FFFFFF#000000##FFFFFF
##5F24911.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#553F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2491;
/* rgb */ color: rgb(95, 36, 145);
/* oklch */ color: oklch(40.7% 0.169 304.4);
Tailwind
colors: {
  custom: {
    50: '#9165b2',
    500: '#5f2491',
    950: '#000000',
  },
}
SCSS
$custom: #5f2491;
$custom-light: #9165b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2491",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 272.477,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.16921,
    "h": 304.4
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#5F2491
secondary
#84BA56
accent
#E3448D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2491

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

Preview Lab → · Contrast checker → · Palette generator →

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