#5D258D#5D258D

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

Color values

HEX#5D258D
RGBrgb(93, 37, 141)
HSLhsl(272, 58%, 35%)
HSVhsv(272, 74%, 55%)
CMYKcmyk(34%, 73.8%, 0%, 44.7%)
CIE-LABlab(28.31, 44.91, -47.28)
CIE-LCHlch(28.31, 65.21, 313.53°)
OKLaboklab(40.2% 0.0925 -0.1345)
OKLCHoklch(40.2% 0.163 304.5)
XYZxyz(9.9824, 5.5734, 25.7440)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D258D #558D25
analogous
#29258D #5D258D #8D2589
triadic
#5D258D #8D5D25 #258D5D
tetradic
#5D258D #8D2925 #558D25 #25898D
square
#5D258D #8D2925 #558D25 #25898D
split-complementary
#5D258D #898D25 #258D29
monochromatic
#1D0C2C #3D185D #5D258D #7D32BD #9B59D3

Accessibility & contrast

On white

9.93
#5D258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D258D
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D258D#FFFFFF#000000##FFFFFF
##5D258D1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d258d;
/* rgb */ color: rgb(93, 37, 141);
/* oklch */ color: oklch(40.2% 0.163 304.5);
Tailwind
colors: {
  custom: {
    50: '#8f65af',
    500: '#5d258d',
    950: '#000000',
  },
}
SCSS
$custom: #5d258d;
$custom-light: #8f65af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d258d",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 272.308,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.402,
    "c": 0.16325,
    "h": 304.5
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#5D258D
secondary
#83B856
accent
#E2468E
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D258D

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

Preview Lab → · Contrast checker → · Palette generator →

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