#5E25A8#5E25A8

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

Color values

HEX#5E25A8
RGBrgb(94, 37, 168)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 66%)
CMYKcmyk(44%, 78%, 0%, 34.1%)
CIE-LABlab(30.71, 51.86, -59.84)
CIE-LCHlch(30.71, 79.19, 310.92°)
OKLaboklab(42.62% 0.0876 -0.1714)
OKLCHoklch(42.62% 0.192 297.1)
XYZxyz(12.3437, 6.5297, 37.6482)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25A8 #6FA825
analogous
#252EA8 #5E25A8 #9F25A8
triadic
#5E25A8 #A85E25 #25A85E
tetradic
#5E25A8 #A8252E #6FA825 #25A89F
square
#5E25A8 #A8252E #6FA825 #25A89F
split-complementary
#5E25A8 #A89F25 #2EA825
monochromatic
#260F44 #421A76 #5E25A8 #7B37D3 #9C69DE

Accessibility & contrast

On white

9.11
#5E25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E25A8
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25A8#FFFFFF#000000##FFFFFF
##5E25A81.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e25a8;
/* rgb */ color: rgb(94, 37, 168);
/* oklch */ color: oklch(42.6% 0.192 297.1);
Tailwind
colors: {
  custom: {
    50: '#9366c3',
    500: '#5e25a8',
    950: '#000000',
  },
}
SCSS
$custom: #5e25a8;
$custom-light: #9366c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25a8",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 266.107,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.19244,
    "h": 297.1
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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