#5E258E#5E258E

#5E258E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.165 H 304.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5E258E
RGBrgb(94, 37, 142)
HSLhsl(273, 59%, 35%)
HSVhsv(273, 74%, 56%)
CMYKcmyk(33.8%, 73.9%, 0%, 44.3%)
CIE-LABlab(28.53, 45.36, -47.53)
CIE-LCHlch(28.53, 65.70, 313.66°)
OKLaboklab(40.41% 0.0938 -0.1352)
OKLCHoklch(40.41% 0.165 304.8)
XYZxyz(10.1590, 5.6559, 26.1424)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E258E #558E25
analogous
#29258E #5E258E #8E258A
triadic
#5E258E #8E5E25 #258E5E
tetradic
#5E258E #8E2925 #558E25 #258A8E
square
#5E258E #8E2925 #558E25 #258A8E
split-complementary
#5E258E #8A8E25 #258E29
monochromatic
#1E0C2D #3E185D #5E258E #7E32BF #9C5AD4

Accessibility & contrast

On white

9.85
#5E258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E258E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E258E#FFFFFF#000000##FFFFFF
##5E258E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#553E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e258e;
/* rgb */ color: rgb(94, 37, 142);
/* oklch */ color: oklch(40.4% 0.165 304.8);
Tailwind
colors: {
  custom: {
    50: '#9065b0',
    500: '#5e258e',
    950: '#000000',
  },
}
SCSS
$custom: #5e258e;
$custom-light: #9065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e258e",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 272.571,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40409,
    "c": 0.16457,
    "h": 304.8
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#5E258E
secondary
#83B956
accent
#E2468D
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E258E

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

Preview Lab → · Contrast checker → · Palette generator →

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