#5E258B#5E258B

#5E258B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.161 H 305.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E258B
RGBrgb(94, 37, 139)
HSLhsl(274, 58%, 35%)
HSVhsv(274, 73%, 55%)
CMYKcmyk(32.4%, 73.4%, 0%, 45.5%)
CIE-LABlab(28.29, 44.63, -46.06)
CIE-LCHlch(28.29, 64.13, 314.10°)
OKLaboklab(40.17% 0.0944 -0.1309)
OKLCHoklch(40.17% 0.161 305.8)
XYZxyz(9.9368, 5.5670, 24.9721)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E258B #528B25
analogous
#2B258B #5E258B #8B2585
triadic
#5E258B #8B5E25 #258B5E
tetradic
#5E258B #8B2B25 #528B25 #25858B
square
#5E258B #8B2B25 #528B25 #25858B
split-complementary
#5E258B #858B25 #258B2B
monochromatic
#1D0B2A #3D185B #5E258B #7F32BB #9C58D3

Accessibility & contrast

On white

9.94
#5E258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E258B
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E258B#FFFFFF#000000##FFFFFF
##5E258B1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#563D55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e258b;
/* rgb */ color: rgb(94, 37, 139);
/* oklch */ color: oklch(40.2% 0.161 305.8);
Tailwind
colors: {
  custom: {
    50: '#9065ae',
    500: '#5e258b',
    950: '#000000',
  },
}
SCSS
$custom: #5e258b;
$custom-light: #9065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e258b",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 273.529,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40169,
    "c": 0.16133,
    "h": 305.8
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#5E258B
secondary
#80B755
accent
#E1478B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E258B

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

Preview Lab → · Contrast checker → · Palette generator →

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