#5E258C#5E258C

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

Color values

HEX#5E258C
RGBrgb(94, 37, 140)
HSLhsl(273, 58%, 35%)
HSVhsv(273, 74%, 55%)
CMYKcmyk(32.9%, 73.6%, 0%, 45.1%)
CIE-LABlab(28.37, 44.87, -46.55)
CIE-LCHlch(28.37, 64.66, 313.95°)
OKLaboklab(40.25% 0.0942 -0.1323)
OKLCHoklch(40.25% 0.162 305.4)
XYZxyz(10.0102, 5.5963, 25.3587)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E258C #538C25
analogous
#2B258C #5E258C #8C2587
triadic
#5E258C #8C5E25 #258C5E
tetradic
#5E258C #8C2B25 #538C25 #25878C
square
#5E258C #8C2B25 #538C25 #25878C
split-complementary
#5E258C #878C25 #258C2B
monochromatic
#1D0B2B #3D185C #5E258C #7F32BC #9C58D3

Accessibility & contrast

On white

9.91
#5E258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E258C
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E258C#FFFFFF#000000##FFFFFF
##5E258C1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#563D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e258c;
/* rgb */ color: rgb(94, 37, 140);
/* oklch */ color: oklch(40.2% 0.162 305.4);
Tailwind
colors: {
  custom: {
    50: '#9065ae',
    500: '#5e258c',
    950: '#000000',
  },
}
SCSS
$custom: #5e258c;
$custom-light: #9065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e258c",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 273.204,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.16241,
    "h": 305.4
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#5E258C
secondary
#81B855
accent
#E1468C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E258C

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

Preview Lab → · Contrast checker → · Palette generator →

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