#5B25AE#5B25AE

#5B25AE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.199 H 294.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B25AE
RGBrgb(91, 37, 174)
HSLhsl(264, 65%, 41%)
HSVhsv(264, 79%, 68%)
CMYKcmyk(47.7%, 78.7%, 0%, 31.8%)
CIE-LABlab(30.89, 52.95, -63.17)
CIE-LCHlch(30.89, 82.42, 309.97°)
OKLaboklab(42.83% 0.0813 -0.1812)
OKLCHoklch(42.83% 0.199 294.2)
XYZxyz(12.6138, 6.6029, 40.6461)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25AE #78AE25
analogous
#2533AE #5B25AE #A025AE
triadic
#5B25AE #AE5B25 #25AE5B
tetradic
#5B25AE #AE2533 #78AE25 #25AEA0
square
#5B25AE #AE2533 #78AE25 #25AEA0
split-complementary
#5B25AE #AEA025 #33AE25
monochromatic
#261049 #411A7C #5B25AE #783BD5 #9B6DE0

Accessibility & contrast

On white

9.05
#5B25AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B25AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25AE
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25AE#FFFFFF#000000##FFFFFF
##5B25AE1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#424C69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b25ae;
/* rgb */ color: rgb(91, 37, 174);
/* oklch */ color: oklch(42.8% 0.199 294.2);
Tailwind
colors: {
  custom: {
    50: '#9266c7',
    500: '#5b25ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b25ae;
$custom-light: #9266c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25ae",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 174
  },
  "hsl": {
    "h": 263.65,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.19861,
    "h": 294.2
  },
  "luminance": 0.06603
}

Semantic roles & 50–950 ramp

primary
#5B25AE
secondary
#A1C668
accent
#E840A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25AE

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

Preview Lab → · Contrast checker → · Palette generator →

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