#5E2FB8#5E2FB8

#5E2FB8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.200 H 292.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5E2FB8
RGBrgb(94, 47, 184)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 74%, 72%)
CMYKcmyk(48.9%, 74.5%, 0%, 27.8%)
CIE-LABlab(33.72, 51.52, -64.47)
CIE-LCHlch(33.72, 82.53, 308.63°)
OKLaboklab(45.17% 0.075 -0.185)
OKLCHoklch(45.17% 0.2 292.1)
XYZxyz(14.2819, 7.8729, 46.1052)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FB8 #89B82F
analogous
#2F44B8 #5E2FB8 #A22FB8
triadic
#5E2FB8 #B85E2F #2FB85E
tetradic
#5E2FB8 #B82F44 #89B82F #2FB8A2
square
#5E2FB8 #B82F44 #89B82F #2FB8A2
split-complementary
#5E2FB8 #B8A22F #44B82F
monochromatic
#2C1657 #452387 #5E2FB8 #7E52D3 #A282DF

Accessibility & contrast

On white

8.16
#5E2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5E2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FB8
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FB8#FFFFFF#000000##FFFFFF
##5E2FB81.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#415471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e2fb8;
/* rgb */ color: rgb(94, 47, 184);
/* oklch */ color: oklch(45.2% 0.200 292.1);
Tailwind
colors: {
  custom: {
    50: '#946cce',
    500: '#5e2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fb8;
$custom-light: #946cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fb8",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 260.584,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.19963,
    "h": 292.1
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#5E2FB8
secondary
#AEC87B
accent
#E245AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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