#5D258E#5D258E

#5D258E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.164 H 304.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5D258E
RGBrgb(93, 37, 142)
HSLhsl(272, 59%, 35%)
HSVhsv(272, 74%, 56%)
CMYKcmyk(34.5%, 73.9%, 0%, 44.3%)
CIE-LABlab(28.39, 45.16, -47.77)
CIE-LCHlch(28.39, 65.73, 313.39°)
OKLaboklab(40.28% 0.0924 -0.1359)
OKLCHoklch(40.28% 0.164 304.2)
XYZxyz(10.0571, 5.6033, 26.1377)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D258E #568E25
analogous
#29258E #5D258E #8E258A
triadic
#5D258E #8E5D25 #258E5D
tetradic
#5D258E #8E2925 #568E25 #258A8E
square
#5D258E #8E2925 #568E25 #258A8E
split-complementary
#5D258E #8A8E25 #258E29
monochromatic
#1D0C2D #3D185D #5D258E #7D32BF #9B5AD4

Accessibility & contrast

On white

9.90
#5D258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D258E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D258E#FFFFFF#000000##FFFFFF
##5D258E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d258e;
/* rgb */ color: rgb(93, 37, 142);
/* oklch */ color: oklch(40.3% 0.164 304.2);
Tailwind
colors: {
  custom: {
    50: '#9065b0',
    500: '#5d258e',
    950: '#000000',
  },
}
SCSS
$custom: #5d258e;
$custom-light: #9065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d258e",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 272,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40281,
    "c": 0.16433,
    "h": 304.2
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#5D258E
secondary
#84B956
accent
#E2468F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D258E

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

Preview Lab → · Contrast checker → · Palette generator →

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