#5D25A0#5D25A0

#5D25A0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.184 H 298.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5D25A0
RGBrgb(93, 37, 160)
HSLhsl(267, 62%, 39%)
HSVhsv(267, 77%, 63%)
CMYKcmyk(41.9%, 76.9%, 0%, 37.3%)
CIE-LABlab(29.88, 49.67, -56.36)
CIE-LCHlch(29.88, 75.13, 311.39°)
OKLaboklab(41.8% 0.0883 -0.1612)
OKLCHoklch(41.8% 0.184 298.7)
XYZxyz(11.5193, 6.1882, 33.8384)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25A0 #68A025
analogous
#252AA0 #5D25A0 #9A25A0
triadic
#5D25A0 #A05D25 #25A05D
tetradic
#5D25A0 #A0252A #68A025 #25A09A
square
#5D25A0 #A0252A #68A025 #25A09A
split-complementary
#5D25A0 #A09A25 #2AA025
monochromatic
#230E3D #401A6E #5D25A0 #7A32D0 #9A64DB

Accessibility & contrast

On white

9.39
#5D25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25A0
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25A0#FFFFFF#000000##FFFFFF
##5D25A01.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#4C4661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d25a0;
/* rgb */ color: rgb(93, 37, 160);
/* oklch */ color: oklch(41.8% 0.184 298.7);
Tailwind
colors: {
  custom: {
    50: '#9166bd',
    500: '#5d25a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d25a0;
$custom-light: #9166bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25a0",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 267.317,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.18377,
    "h": 298.7
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#5D25A0
secondary
#95C160
accent
#E6429B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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