#5D25B2#5D25B2

#5D25B2 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.203 H 294.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5D25B2
RGBrgb(93, 37, 178)
HSLhsl(264, 66%, 42%)
HSVhsv(264, 79%, 70%)
CMYKcmyk(47.8%, 79.2%, 0%, 30.2%)
CIE-LABlab(31.50, 54.27, -64.55)
CIE-LCHlch(31.50, 84.33, 310.05°)
OKLaboklab(43.42% 0.0831 -0.1852)
OKLCHoklch(43.42% 0.203 294.2)
XYZxyz(13.2094, 6.8642, 42.7398)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25B2 #7AB225
analogous
#2534B2 #5D25B2 #A425B2
triadic
#5D25B2 #B25D25 #25B25D
tetradic
#5D25B2 #B22534 #7AB225 #25B2A4
square
#5D25B2 #B22534 #7AB225 #25B2A4
split-complementary
#5D25B2 #B2A425 #34B225
monochromatic
#28104D #431A7F #5D25B2 #7A3DD7 #9D70E1

Accessibility & contrast

On white

8.85
#5D25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25B2
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25B2#FFFFFF#000000##FFFFFF
##5D25B21.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#434D6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d25b2;
/* rgb */ color: rgb(93, 37, 178);
/* oklch */ color: oklch(43.4% 0.203 294.2);
Tailwind
colors: {
  custom: {
    50: '#9467ca',
    500: '#5d25b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d25b2;
$custom-light: #9467ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25b2",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 263.83,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4342,
    "c": 0.20299,
    "h": 294.2
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#5D25B2
secondary
#A3C86B
accent
#E93FA5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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