#5E25A2#5E25A2

#5E25A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.186 H 298.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5E25A2
RGBrgb(94, 37, 162)
HSLhsl(267, 63%, 39%)
HSVhsv(267, 77%, 64%)
CMYKcmyk(42%, 77.2%, 0%, 36.5%)
CIE-LABlab(30.18, 50.34, -57.08)
CIE-LCHlch(30.18, 76.11, 311.41°)
OKLaboklab(42.09% 0.0892 -0.1632)
OKLCHoklch(42.09% 0.186 298.7)
XYZxyz(11.7976, 6.3113, 34.7720)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E25A2 #69A225
analogous
#252BA2 #5E25A2 #9D25A2
triadic
#5E25A2 #A25E25 #25A25E
tetradic
#5E25A2 #A2252B #69A225 #25A29D
square
#5E25A2 #A2252B #69A225 #25A29D
split-complementary
#5E25A2 #A29D25 #2BA225
monochromatic
#240E3E #411A70 #5E25A2 #7B34D1 #9B65DC

Accessibility & contrast

On white

9.28
#5E25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E25A2
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E25A2#FFFFFF#000000##FFFFFF
##5E25A21.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4D4662
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e25a2;
/* rgb */ color: rgb(94, 37, 162);
/* oklch */ color: oklch(42.1% 0.186 298.7);
Tailwind
colors: {
  custom: {
    50: '#9266bf',
    500: '#5e25a2',
    950: '#000000',
  },
}
SCSS
$custom: #5e25a2;
$custom-light: #9266bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e25a2",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 267.36,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42093,
    "c": 0.18604,
    "h": 298.7
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#5E25A2
secondary
#96C261
accent
#E6429B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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