#5D258B#5D258B

#5D258B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.161 H 305.2°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5D258B
RGBrgb(93, 37, 139)
HSLhsl(273, 58%, 35%)
HSVhsv(273, 73%, 55%)
CMYKcmyk(33.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(28.15, 44.42, -46.29)
CIE-LCHlch(28.15, 64.16, 313.82°)
OKLaboklab(40.04% 0.0929 -0.1316)
OKLCHoklch(40.04% 0.161 305.2)
XYZxyz(9.8349, 5.5144, 24.9674)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D258B #538B25
analogous
#2A258B #5D258B #8B2586
triadic
#5D258B #8B5D25 #258B5D
tetradic
#5D258B #8B2A25 #538B25 #25868B
square
#5D258B #8B2A25 #538B25 #25868B
split-complementary
#5D258B #868B25 #258B2A
monochromatic
#1C0B2A #3D185B #5D258B #7D32BB #9B58D3

Accessibility & contrast

On white

9.99
#5D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D258B
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D258B#FFFFFF#000000##FFFFFF
##5D258B1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d258b;
/* rgb */ color: rgb(93, 37, 139);
/* oklch */ color: oklch(40.0% 0.161 305.2);
Tailwind
colors: {
  custom: {
    50: '#8f65ae',
    500: '#5d258b',
    950: '#000000',
  },
}
SCSS
$custom: #5d258b;
$custom-light: #8f65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d258b",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 272.941,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.16108,
    "h": 305.2
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#5D258B
secondary
#81B755
accent
#E1478C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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