#5E2BA4#5E2BA4

#5E2BA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.182 H 297.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5E2BA4
RGBrgb(94, 43, 164)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(42.7%, 73.8%, 0%, 35.7%)
CIE-LABlab(31.32, 48.12, -56.44)
CIE-LCHlch(31.32, 74.16, 310.45°)
OKLaboklab(42.94% 0.0833 -0.1614)
OKLCHoklch(42.94% 0.182 297.3)
XYZxyz(12.1791, 6.7875, 35.7832)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA4 #71A42B
analogous
#2B35A4 #5E2BA4 #9A2BA4
triadic
#5E2BA4 #A45E2B #2BA45E
tetradic
#5E2BA4 #A42B35 #71A42B #2BA49A
square
#5E2BA4 #A42B35 #71A42B #2BA49A
split-complementary
#5E2BA4 #A49A2B #35A42B
monochromatic
#261243 #421E74 #5E2BA4 #7B3FCD #9C70D9

Accessibility & contrast

On white

8.91
#5E2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2BA4
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BA4#FFFFFF#000000##FFFFFF
##5E2BA41.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#4C4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ba4;
/* rgb */ color: rgb(94, 43, 164);
/* oklch */ color: oklch(42.9% 0.182 297.3);
Tailwind
colors: {
  custom: {
    50: '#9269c0',
    500: '#5e2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba4;
$custom-light: #9269c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba4",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 265.289,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.18165,
    "h": 297.3
  },
  "luminance": 0.06788
}

Semantic roles & 50–950 ramp

primary
#5E2BA4
secondary
#9CC16A
accent
#E246A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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