#5D258A#5D258A

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

Color values

HEX#5D258A
RGBrgb(93, 37, 138)
HSLhsl(273, 58%, 34%)
HSVhsv(273, 73%, 54%)
CMYKcmyk(32.6%, 73.2%, 0%, 45.9%)
CIE-LABlab(28.07, 44.18, -45.79)
CIE-LCHlch(28.07, 63.63, 313.97°)
OKLaboklab(39.96% 0.0931 -0.1301)
OKLCHoklch(39.96% 0.16 305.6)
XYZxyz(9.7622, 5.4853, 24.5843)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D258A #528A25
analogous
#2B258A #5D258A #8A2585
triadic
#5D258A #8A5D25 #258A5D
tetradic
#5D258A #8A2B25 #528A25 #25858A
square
#5D258A #8A2B25 #528A25 #25858A
split-complementary
#5D258A #858A25 #258A2B
monochromatic
#1C0B29 #3C185A #5D258A #7E32BA #9B57D2

Accessibility & contrast

On white

10.01
#5D258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D258A
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D258A#FFFFFF#000000##FFFFFF
##5D258A1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d258a;
/* rgb */ color: rgb(93, 37, 138);
/* oklch */ color: oklch(40.0% 0.160 305.6);
Tailwind
colors: {
  custom: {
    50: '#8f65ad',
    500: '#5d258a',
    950: '#000000',
  },
}
SCSS
$custom: #5d258a;
$custom-light: #8f65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d258a",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 273.267,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3996,
    "c": 0.15999,
    "h": 305.6
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

primary
#5D258A
secondary
#80B754
accent
#E1478C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D258A

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

Preview Lab → · Contrast checker → · Palette generator →

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