#5E2D7B#5E2D7B

#5E2D7B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.132 H 310.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5E2D7B
RGBrgb(94, 45, 123)
HSLhsl(278, 46%, 33%)
HSVhsv(278, 63%, 48%)
CMYKcmyk(23.6%, 63.4%, 0%, 51.8%)
CIE-LABlab(28.61, 36.71, -35.54)
CIE-LCHlch(28.61, 51.09, 315.93°)
OKLaboklab(40.03% 0.0863 -0.1)
OKLCHoklch(40.03% 0.132 310.8)
XYZxyz(9.1290, 5.6867, 19.3518)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D7B #4A7B2D
analogous
#372D7B #5E2D7B #7B2D71
triadic
#5E2D7B #7B5E2D #2D7B5E
tetradic
#5E2D7B #7B372D #4A7B2D #2D717B
square
#5E2D7B #7B372D #4A7B2D #2D717B
split-complementary
#5E2D7B #717B2D #2D7B37
monochromatic
#1A0C21 #3C1D4E #5E2D7B #803DA8 #9E5EC4

Accessibility & contrast

On white

9.83
#5E2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D7B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D7B#FFFFFF#000000##FFFFFF
##5E2D7B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417D
Deuteranopia (green-blind)
#254479
Tritanopia (blue-blind)
#5A3C4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2d7b;
/* rgb */ color: rgb(94, 45, 123);
/* oklch */ color: oklch(40.0% 0.132 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e69a2',
    500: '#5e2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d7b;
$custom-light: #8e69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d7b",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 277.692,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40032,
    "c": 0.13209,
    "h": 310.8
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#5E2D7B
secondary
#77AB59
accent
#D65283
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5E2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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