#5E2FB5#5E2FB5

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

Color values

HEX#5E2FB5
RGBrgb(94, 47, 181)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 71%)
CMYKcmyk(48.1%, 74%, 0%, 29%)
CIE-LABlab(33.45, 50.71, -63.12)
CIE-LCHlch(33.45, 80.97, 308.78°)
OKLaboklab(44.9% 0.0758 -0.181)
OKLCHoklch(44.9% 0.196 292.7)
XYZxyz(13.9708, 7.7484, 44.4666)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FB5 #86B52F
analogous
#2F43B5 #5E2FB5 #A12FB5
triadic
#5E2FB5 #B55E2F #2FB55E
tetradic
#5E2FB5 #B52F43 #86B52F #2FB5A1
square
#5E2FB5 #B52F43 #86B52F #2FB5A1
split-complementary
#5E2FB5 #B5A12F #43B52F
monochromatic
#2C1654 #452284 #5E2FB5 #7D50D1 #A180DE

Accessibility & contrast

On white

8.24
#5E2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5E2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FB5
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FB5#FFFFFF#000000##FFFFFF
##5E2FB51.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#435370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e2fb5;
/* rgb */ color: rgb(94, 47, 181);
/* oklch */ color: oklch(44.9% 0.196 292.7);
Tailwind
colors: {
  custom: {
    50: '#946ccc',
    500: '#5e2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fb5;
$custom-light: #946ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fb5",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 261.045,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.449,
    "c": 0.19626,
    "h": 292.7
  },
  "luminance": 0.07749
}

Semantic roles & 50–950 ramp

primary
#5E2FB5
secondary
#ACC779
accent
#E246AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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