#5E25B1#5E25B1

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

Color values

HEX#5E25B1
RGBrgb(94, 37, 177)
HSLhsl(264, 65%, 42%)
HSVhsv(264, 79%, 69%)
CMYKcmyk(46.9%, 79.1%, 0%, 30.6%)
CIE-LABlab(31.52, 54.16, -63.90)
CIE-LCHlch(31.52, 83.76, 310.28°)
OKLaboklab(43.44% 0.0849 -0.1833)
OKLCHoklch(43.44% 0.202 294.9)
XYZxyz(13.2113, 6.8768, 42.2177)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25B1 #78B125
analogous
#2532B1 #5E25B1 #A425B1
triadic
#5E25B1 #B15E25 #25B15E
tetradic
#5E25B1 #B12532 #78B125 #25B1A4
square
#5E25B1 #B12532 #78B125 #25B1A4
split-complementary
#5E25B1 #B1A425 #32B125
monochromatic
#28104C #431A7E #5E25B1 #7B3DD6 #9E6FE1

Accessibility & contrast

On white

8.84
#5E25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E25B1
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25B1#FFFFFF#000000##FFFFFF
##5E25B11.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#464D6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e25b1;
/* rgb */ color: rgb(94, 37, 177);
/* oklch */ color: oklch(43.4% 0.202 294.9);
Tailwind
colors: {
  custom: {
    50: '#9467c9',
    500: '#5e25b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e25b1;
$custom-light: #9467c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25b1",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 264.429,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4344,
    "c": 0.20199,
    "h": 294.9
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#5E25B1
secondary
#A2C86A
accent
#E83FA4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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