#5B25A9#5B25A9

#5B25A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.193 H 295.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5B25A9
RGBrgb(91, 37, 169)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 66%)
CMYKcmyk(46.2%, 78.1%, 0%, 33.7%)
CIE-LABlab(30.43, 51.65, -60.92)
CIE-LCHlch(30.43, 79.87, 310.29°)
OKLaboklab(42.37% 0.0827 -0.1746)
OKLCHoklch(42.37% 0.193 295.4)
XYZxyz(12.1354, 6.4115, 38.1266)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25A9 #73A925
analogous
#2531A9 #5B25A9 #9D25A9
triadic
#5B25A9 #A95B25 #25A95B
tetradic
#5B25A9 #A92531 #73A925 #25A99D
square
#5B25A9 #A92531 #73A925 #25A99D
split-complementary
#5B25A9 #A99D25 #31A925
monochromatic
#250F45 #401A77 #5B25A9 #7738D3 #9A6ADE

Accessibility & contrast

On white

9.20
#5B25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5B25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25A9
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25A9#FFFFFF#000000##FFFFFF
##5B25A91.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#454A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b25a9;
/* rgb */ color: rgb(91, 37, 169);
/* oklch */ color: oklch(42.4% 0.193 295.4);
Tailwind
colors: {
  custom: {
    50: '#9166c4',
    500: '#5b25a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b25a9;
$custom-light: #9166c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25a9",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 264.545,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4237,
    "c": 0.19324,
    "h": 295.4
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#5B25A9
secondary
#9EC465
accent
#E741A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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