#5E25B2#5E25B2

#5E25B2 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.203 H 294.6°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5E25B2
RGBrgb(94, 37, 178)
HSLhsl(264, 66%, 42%)
HSVhsv(264, 79%, 70%)
CMYKcmyk(47.2%, 79.2%, 0%, 30.2%)
CIE-LABlab(31.62, 54.41, -64.35)
CIE-LCHlch(31.62, 84.27, 310.22°)
OKLaboklab(43.53% 0.0846 -0.1846)
OKLCHoklch(43.53% 0.203 294.6)
XYZxyz(13.3113, 6.9168, 42.7446)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25B2 #79B225
analogous
#2533B2 #5E25B2 #A425B2
triadic
#5E25B2 #B25E25 #25B25E
tetradic
#5E25B2 #B22533 #79B225 #25B2A4
square
#5E25B2 #B22533 #79B225 #25B2A4
split-complementary
#5E25B2 #B2A425 #33B225
monochromatic
#28104D #431A7F #5E25B2 #7B3DD7 #9E70E1

Accessibility & contrast

On white

8.81
#5E25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E25B2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25B2#FFFFFF#000000##FFFFFF
##5E25B21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#454D6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e25b2;
/* rgb */ color: rgb(94, 37, 178);
/* oklch */ color: oklch(43.5% 0.203 294.6);
Tailwind
colors: {
  custom: {
    50: '#9467ca',
    500: '#5e25b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e25b2;
$custom-light: #9467ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25b2",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 264.255,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43532,
    "c": 0.20304,
    "h": 294.6
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#5E25B2
secondary
#A2C86B
accent
#E93FA4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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