#5F2EA9#5F2EA9

#5F2EA9 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.184 H 296.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA9
RGBrgb(95, 46, 169)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 73%, 66%)
CMYKcmyk(43.8%, 72.8%, 0%, 33.7%)
CIE-LABlab(32.37, 48.16, -57.72)
CIE-LCHlch(32.37, 75.17, 309.84°)
OKLaboklab(43.85% 0.0809 -0.1652)
OKLCHoklch(43.85% 0.184 296.1)
XYZxyz(12.8558, 7.2512, 38.2507)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA9 #78A92E
analogous
#2E3BA9 #5F2EA9 #9C2EA9
triadic
#5F2EA9 #A95F2E #2EA95F
tetradic
#5F2EA9 #A92E3B #78A92E #2EA99C
square
#5F2EA9 #A92E3B #78A92E #2EA99C
split-complementary
#5F2EA9 #A99C2E #3BA92E
monochromatic
#291449 #442179 #5F2EA9 #7D47CD #9F77DA

Accessibility & contrast

On white

8.57
#5F2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5F2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA9
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA9#FFFFFF#000000##FFFFFF
##5F2EA91.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#4B4D69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2ea9;
/* rgb */ color: rgb(95, 46, 169);
/* oklch */ color: oklch(43.8% 0.184 296.1);
Tailwind
colors: {
  custom: {
    50: '#936bc4',
    500: '#5f2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea9;
$custom-light: #936bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea9",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 263.902,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43846,
    "c": 0.1839,
    "h": 296.1
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#5F2EA9
secondary
#A2C271
accent
#E047A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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