#5D25A9#5D25A9

#5D25A9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.193 H 296.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5D25A9
RGBrgb(93, 37, 169)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 66%)
CMYKcmyk(45%, 78.1%, 0%, 33.7%)
CIE-LABlab(30.68, 51.96, -60.50)
CIE-LCHlch(30.68, 79.75, 310.66°)
OKLaboklab(42.6% 0.0858 -0.1733)
OKLCHoklch(42.6% 0.193 296.3)
XYZxyz(12.3353, 6.5146, 38.1360)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25A9 #71A925
analogous
#252FA9 #5D25A9 #9F25A9
triadic
#5D25A9 #A95D25 #25A95D
tetradic
#5D25A9 #A9252F #71A925 #25A99F
square
#5D25A9 #A9252F #71A925 #25A99F
split-complementary
#5D25A9 #A99F25 #2FA925
monochromatic
#260F45 #411A77 #5D25A9 #7A38D3 #9B6ADE

Accessibility & contrast

On white

9.12
#5D25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25A9
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25A9#FFFFFF#000000##FFFFFF
##5D25A91.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#484966
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d25a9;
/* rgb */ color: rgb(93, 37, 169);
/* oklch */ color: oklch(42.6% 0.193 296.3);
Tailwind
colors: {
  custom: {
    50: '#9266c4',
    500: '#5d25a9',
    950: '#000000',
  },
}
SCSS
$custom: #5d25a9;
$custom-light: #9266c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25a9",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 265.455,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.1934,
    "h": 296.3
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#5D25A9
secondary
#9CC465
accent
#E741A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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