#5E2BA7#5E2BA7

#5E2BA7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.185 H 296.5°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5E2BA7
RGBrgb(94, 43, 167)
HSLhsl(265, 59%, 41%)
HSVhsv(265, 74%, 65%)
CMYKcmyk(43.7%, 74.3%, 0%, 34.5%)
CIE-LABlab(31.57, 48.90, -57.83)
CIE-LCHlch(31.57, 75.73, 310.22°)
OKLaboklab(43.2% 0.0826 -0.1655)
OKLCHoklch(43.2% 0.185 296.5)
XYZxyz(12.4532, 6.8972, 37.2269)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2BA7 #74A72B
analogous
#2B36A7 #5E2BA7 #9C2BA7
triadic
#5E2BA7 #A75E2B #2BA75E
tetradic
#5E2BA7 #A72B36 #74A72B #2BA79C
square
#5E2BA7 #A72B36 #74A72B #2BA79C
split-complementary
#5E2BA7 #A79C2B #36A72B
monochromatic
#271246 #431E76 #5E2BA7 #7B41CE #9D72DB

Accessibility & contrast

On white

8.83
#5E2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2BA7
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2BA7#FFFFFF#000000##FFFFFF
##5E2BA71.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#4B4B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2ba7;
/* rgb */ color: rgb(94, 43, 167);
/* oklch */ color: oklch(43.2% 0.185 296.5);
Tailwind
colors: {
  custom: {
    50: '#9269c2',
    500: '#5e2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ba7;
$custom-light: #9269c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ba7",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 264.677,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43201,
    "c": 0.18498,
    "h": 296.5
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#5E2BA7
secondary
#9FC26C
accent
#E246A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5E2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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