#5E2B9F#5E2B9F

#5E2B9F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.176 H 298.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5E2B9F
RGBrgb(94, 43, 159)
HSLhsl(266, 57%, 40%)
HSVhsv(266, 73%, 62%)
CMYKcmyk(40.9%, 73%, 0%, 37.6%)
CIE-LABlab(30.90, 46.81, -54.09)
CIE-LCHlch(30.90, 71.53, 310.88°)
OKLaboklab(42.52% 0.0844 -0.1545)
OKLCHoklch(42.52% 0.176 298.6)
XYZxyz(11.7364, 6.6105, 33.4518)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2B9F #6C9F2B
analogous
#2B329F #5E2B9F #982B9F
triadic
#5E2B9F #9F5E2B #2B9F5E
tetradic
#5E2B9F #9F2B32 #6C9F2B #2B9F98
square
#5E2B9F #9F2B32 #6C9F2B #2B9F98
split-complementary
#5E2B9F #9F982B #329F2B
monochromatic
#25113F #421E6F #5E2B9F #7B3DCA #9C6DD7

Accessibility & contrast

On white

9.04
#5E2B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5E2B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2B9F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2B9F#FFFFFF#000000##FFFFFF
##5E2B9F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#4E4862
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2b9f;
/* rgb */ color: rgb(94, 43, 159);
/* oklch */ color: oklch(42.5% 0.176 298.6);
Tailwind
colors: {
  custom: {
    50: '#9269bc',
    500: '#5e2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e2b9f;
$custom-light: #9269bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2b9f",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 266.379,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.17605,
    "h": 298.6
  },
  "luminance": 0.06611
}

Semantic roles & 50–950 ramp

primary
#5E2B9F
secondary
#98BE67
accent
#E1479D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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