#5D25A5#5D25A5

#5D25A5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.189 H 297.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5D25A5
RGBrgb(93, 37, 165)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(43.6%, 77.6%, 0%, 35.3%)
CIE-LABlab(30.32, 50.94, -58.68)
CIE-LCHlch(30.32, 77.70, 310.96°)
OKLaboklab(42.24% 0.0869 -0.168)
OKLCHoklch(42.24% 0.189 297.4)
XYZxyz(11.9655, 6.3667, 36.1885)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25A5 #6DA525
analogous
#252DA5 #5D25A5 #9D25A5
triadic
#5D25A5 #A55D25 #25A55D
tetradic
#5D25A5 #A5252D #6DA525 #25A59D
square
#5D25A5 #A5252D #6DA525 #25A59D
split-complementary
#5D25A5 #A59D25 #2DA525
monochromatic
#250F41 #411A73 #5D25A5 #7A35D2 #9B67DD

Accessibility & contrast

On white

9.24
#5D25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25A5
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25A5#FFFFFF#000000##FFFFFF
##5D25A51.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#4A4864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d25a5;
/* rgb */ color: rgb(93, 37, 165);
/* oklch */ color: oklch(42.2% 0.189 297.4);
Tailwind
colors: {
  custom: {
    50: '#9266c1',
    500: '#5d25a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d25a5;
$custom-light: #9266c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25a5",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 266.25,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4224,
    "c": 0.18913,
    "h": 297.4
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#5D25A5
secondary
#99C363
accent
#E6419E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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