#5E25A1#5E25A1

#5E25A1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.185 H 298.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5E25A1
RGBrgb(94, 37, 161)
HSLhsl(268, 63%, 39%)
HSVhsv(268, 77%, 63%)
CMYKcmyk(41.6%, 77%, 0%, 36.9%)
CIE-LABlab(30.10, 50.09, -56.61)
CIE-LCHlch(30.10, 75.59, 311.50°)
OKLaboklab(42.01% 0.0895 -0.1619)
OKLCHoklch(42.01% 0.185 298.9)
XYZxyz(11.7090, 6.2759, 34.3058)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25A1 #68A125
analogous
#252AA1 #5E25A1 #9C25A1
triadic
#5E25A1 #A15E25 #25A15E
tetradic
#5E25A1 #A1252A #68A125 #25A19C
square
#5E25A1 #A1252A #68A125 #25A19C
split-complementary
#5E25A1 #A19C25 #2AA125
monochromatic
#240E3D #411A6F #5E25A1 #7B33D0 #9B65DC

Accessibility & contrast

On white

9.31
#5E25A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5E25A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E25A1
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25A1#FFFFFF#000000##FFFFFF
##5E25A11.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#4E4662
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e25a1;
/* rgb */ color: rgb(94, 37, 161);
/* oklch */ color: oklch(42.0% 0.185 298.9);
Tailwind
colors: {
  custom: {
    50: '#9266be',
    500: '#5e25a1',
    950: '#000000',
  },
}
SCSS
$custom: #5e25a1;
$custom-light: #9266be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25a1",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 161
  },
  "hsl": {
    "h": 267.581,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.18498,
    "h": 298.9
  },
  "luminance": 0.06276
}

Semantic roles & 50–950 ramp

primary
#5E25A1
secondary
#95C161
accent
#E6429A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E25A1

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

Preview Lab → · Contrast checker → · Palette generator →

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