#5F2EB4#5F2EB4

#5F2EB4 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.196 H 293.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2EB4
RGBrgb(95, 46, 180)
HSLhsl(262, 59%, 44%)
HSVhsv(262, 74%, 71%)
CMYKcmyk(47.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(33.31, 51.08, -62.75)
CIE-LCHlch(33.31, 80.92, 309.15°)
OKLaboklab(44.8% 0.0783 -0.1799)
OKLCHoklch(44.8% 0.196 293.5)
XYZxyz(13.9323, 7.6817, 43.9198)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB4 #83B42E
analogous
#2E40B4 #5F2EB4 #A22EB4
triadic
#5F2EB4 #B45F2E #2EB45F
tetradic
#5F2EB4 #B42E40 #83B42E #2EB4A2
square
#5F2EB4 #B42E40 #83B42E #2EB4A2
split-complementary
#5F2EB4 #B4A22E #40B42E
monochromatic
#2C1553 #452283 #5F2EB4 #7E4ED2 #A17EDE

Accessibility & contrast

On white

8.28
#5F2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EB4
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EB4#FFFFFF#000000##FFFFFF
##5F2EB41.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#45526F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2eb4;
/* rgb */ color: rgb(95, 46, 180);
/* oklch */ color: oklch(44.8% 0.196 293.5);
Tailwind
colors: {
  custom: {
    50: '#946ccc',
    500: '#5f2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb4;
$custom-light: #946ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb4",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 261.94,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44799,
    "c": 0.19625,
    "h": 293.5
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#5F2EB4
secondary
#AAC777
accent
#E245A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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