#5E2FB2#5E2FB2

#5E2FB2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.193 H 293.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5E2FB2
RGBrgb(94, 47, 178)
HSLhsl(262, 58%, 44%)
HSVhsv(262, 74%, 70%)
CMYKcmyk(47.2%, 73.6%, 0%, 30.2%)
CIE-LABlab(33.19, 49.91, -61.76)
CIE-LCHlch(33.19, 79.41, 308.94°)
OKLaboklab(44.64% 0.0765 -0.1771)
OKLCHoklch(44.64% 0.193 293.4)
XYZxyz(13.6663, 7.6266, 42.8629)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FB2 #83B22F
analogous
#2F42B2 #5E2FB2 #A02FB2
triadic
#5E2FB2 #B25E2F #2FB25E
tetradic
#5E2FB2 #B22F42 #83B22F #2FB2A0
square
#5E2FB2 #B22F42 #83B22F #2FB2A0
split-complementary
#5E2FB2 #B2A02F #42B22F
monochromatic
#2B1551 #442282 #5E2FB2 #7D4ED0 #A07EDD

Accessibility & contrast

On white

8.32
#5E2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5E2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FB2
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FB2#FFFFFF#000000##FFFFFF
##5E2FB21.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#45526E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e2fb2;
/* rgb */ color: rgb(94, 47, 178);
/* oklch */ color: oklch(44.6% 0.193 293.4);
Tailwind
colors: {
  custom: {
    50: '#946cca',
    500: '#5e2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fb2;
$custom-light: #946cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fb2",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 261.527,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44636,
    "c": 0.19287,
    "h": 293.4
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#5E2FB2
secondary
#AAC677
accent
#E146AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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