#5E2F85#5E2F85

#5E2F85 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.141 H 306.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5E2F85
RGBrgb(94, 47, 133)
HSLhsl(273, 48%, 35%)
HSVhsv(273, 65%, 52%)
CMYKcmyk(29.3%, 64.7%, 0%, 47.8%)
CIE-LABlab(29.68, 38.09, -40.09)
CIE-LCHlch(29.68, 55.29, 313.53°)
OKLaboklab(41.02% 0.0833 -0.1134)
OKLCHoklch(41.02% 0.141 306.3)
XYZxyz(9.8653, 6.1063, 22.8447)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F85 #56852F
analogous
#332F85 #5E2F85 #852F81
triadic
#5E2F85 #855E2F #2F855E
tetradic
#5E2F85 #85332F #56852F #2F8185
square
#5E2F85 #85332F #56852F #2F8185
split-complementary
#5E2F85 #81852F #2F8533
monochromatic
#1E0F2B #3E1F58 #5E2F85 #7E3FB2 #9C66C9

Accessibility & contrast

On white

9.45
#5E2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F85
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F85#FFFFFF#000000##FFFFFF
##5E2F851.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#1D4683
Tritanopia (blue-blind)
#574155
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2f85;
/* rgb */ color: rgb(94, 47, 133);
/* oklch */ color: oklch(41.0% 0.141 306.3);
Tailwind
colors: {
  custom: {
    50: '#8f6aa9',
    500: '#5e2f85',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f85;
$custom-light: #8f6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f85",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 272.791,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41024,
    "c": 0.1407,
    "h": 306.3
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#5E2F85
secondary
#84B060
accent
#D7508E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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