#5E2BA5#5E2BA5

#5E2BA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.183 H 297.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5E2BA5
RGBrgb(94, 43, 165)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 74%, 65%)
CMYKcmyk(43%, 73.9%, 0%, 35.3%)
CIE-LABlab(31.40, 48.38, -56.90)
CIE-LCHlch(31.40, 74.69, 310.37°)
OKLaboklab(43.03% 0.0831 -0.1628)
OKLCHoklch(43.03% 0.183 297)
XYZxyz(12.2697, 6.8238, 36.2607)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA5 #72A52B
analogous
#2B35A5 #5E2BA5 #9B2BA5
triadic
#5E2BA5 #A55E2B #2BA55E
tetradic
#5E2BA5 #A52B35 #72A52B #2BA59B
square
#5E2BA5 #A52B35 #72A52B #2BA59B
split-complementary
#5E2BA5 #A59B2B #35A52B
monochromatic
#271244 #421E74 #5E2BA5 #7B40CD #9D71DA

Accessibility & contrast

On white

8.88
#5E2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5E2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BA5
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BA5#FFFFFF#000000##FFFFFF
##5E2BA51.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4C4A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ba5;
/* rgb */ color: rgb(94, 43, 165);
/* oklch */ color: oklch(43.0% 0.183 297.0);
Tailwind
colors: {
  custom: {
    50: '#9269c1',
    500: '#5e2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba5;
$custom-light: #9269c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba5",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 265.082,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43029,
    "c": 0.18275,
    "h": 297
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#5E2BA5
secondary
#9DC16B
accent
#E246A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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