#5F2EA4#5F2EA4

#5F2EA4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.178 H 297.4°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA4
RGBrgb(95, 46, 164)
HSLhsl(265, 56%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(42.1%, 72%, 0%, 35.7%)
CIE-LABlab(31.96, 46.84, -55.39)
CIE-LCHlch(31.96, 72.54, 310.22°)
OKLaboklab(43.43% 0.0819 -0.1583)
OKLCHoklch(43.43% 0.178 297.4)
XYZxyz(12.3954, 7.0670, 35.8258)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA4 #73A42E
analogous
#2E38A4 #5F2EA4 #9A2EA4
triadic
#5F2EA4 #A45F2E #2EA45F
tetradic
#5F2EA4 #A42E38 #73A42E #2EA49A
square
#5F2EA4 #A42E38 #73A42E #2EA49A
split-complementary
#5F2EA4 #A49A2E #38A42E
monochromatic
#281344 #432174 #5F2EA4 #7C45CB #9E74D8

Accessibility & contrast

On white

8.70
#5F2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA4
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA4#FFFFFF#000000##FFFFFF
##5F2EA41.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#4E4B66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ea4;
/* rgb */ color: rgb(95, 46, 164);
/* oklch */ color: oklch(43.4% 0.178 297.4);
Tailwind
colors: {
  custom: {
    50: '#936bc0',
    500: '#5f2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea4;
$custom-light: #936bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea4",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 264.915,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.17823,
    "h": 297.4
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#5F2EA4
secondary
#9EC06E
accent
#DF48A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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