#5E25A9#5E25A9

#5E25A9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.194 H 296.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5E25A9
RGBrgb(94, 37, 169)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 66%)
CMYKcmyk(44.4%, 78.1%, 0%, 33.7%)
CIE-LABlab(30.80, 52.12, -60.29)
CIE-LCHlch(30.80, 79.70, 310.84°)
OKLaboklab(42.71% 0.0873 -0.1727)
OKLCHoklch(42.71% 0.194 296.8)
XYZxyz(12.4372, 6.5671, 38.1407)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25A9 #70A925
analogous
#252EA9 #5E25A9 #A025A9
triadic
#5E25A9 #A95E25 #25A95E
tetradic
#5E25A9 #A9252E #70A925 #25A9A0
square
#5E25A9 #A9252E #70A925 #25A9A0
split-complementary
#5E25A9 #A9A025 #2EA925
monochromatic
#260F45 #421A77 #5E25A9 #7B38D3 #9C6ADE

Accessibility & contrast

On white

9.08
#5E25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E25A9
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25A9#FFFFFF#000000##FFFFFF
##5E25A91.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#4A4966
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e25a9;
/* rgb */ color: rgb(94, 37, 169);
/* oklch */ color: oklch(42.7% 0.194 296.8);
Tailwind
colors: {
  custom: {
    50: '#9366c4',
    500: '#5e25a9',
    950: '#000000',
  },
}
SCSS
$custom: #5e25a9;
$custom-light: #9366c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25a9",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 265.909,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42713,
    "c": 0.1935,
    "h": 296.8
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#5E25A9
secondary
#9BC465
accent
#E7419F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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