#5D25A6#5D25A6

#5D25A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.190 H 297.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5D25A6
RGBrgb(93, 37, 166)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(44%, 77.7%, 0%, 34.9%)
CIE-LABlab(30.41, 51.20, -59.14)
CIE-LCHlch(30.41, 78.22, 310.88°)
OKLaboklab(42.33% 0.0866 -0.1693)
OKLCHoklch(42.33% 0.19 297.1)
XYZxyz(12.0569, 6.4032, 36.6697)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25A6 #6EA625
analogous
#252DA6 #5D25A6 #9E25A6
triadic
#5D25A6 #A65D25 #25A65D
tetradic
#5D25A6 #A6252D #6EA625 #25A69E
square
#5D25A6 #A6252D #6EA625 #25A69E
split-complementary
#5D25A6 #A69E25 #2DA625
monochromatic
#250F42 #411A74 #5D25A6 #7A36D2 #9B68DD

Accessibility & contrast

On white

9.21
#5D25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25A6
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25A6#FFFFFF#000000##FFFFFF
##5D25A61.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4A4865
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d25a6;
/* rgb */ color: rgb(93, 37, 166);
/* oklch */ color: oklch(42.3% 0.190 297.1);
Tailwind
colors: {
  custom: {
    50: '#9266c1',
    500: '#5d25a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d25a6;
$custom-light: #9266c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25a6",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 266.047,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42329,
    "c": 0.1902,
    "h": 297.1
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#5D25A6
secondary
#9AC364
accent
#E7419F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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