#5B25A0#5B25A0

#5B25A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.184 H 297.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B25A0
RGBrgb(91, 37, 160)
HSLhsl(266, 62%, 39%)
HSVhsv(266, 77%, 63%)
CMYKcmyk(43.1%, 76.9%, 0%, 37.3%)
CIE-LABlab(29.63, 49.33, -56.79)
CIE-LCHlch(29.63, 75.23, 310.98°)
OKLaboklab(41.56% 0.0852 -0.1625)
OKLCHoklch(41.56% 0.184 297.7)
XYZxyz(11.3195, 6.0851, 33.8291)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25A0 #6AA025
analogous
#252DA0 #5B25A0 #9825A0
triadic
#5B25A0 #A05B25 #25A05B
tetradic
#5B25A0 #A0252D #6AA025 #25A098
square
#5B25A0 #A0252D #6AA025 #25A098
split-complementary
#5B25A0 #A09825 #2DA025
monochromatic
#220E3D #3F1A6E #5B25A0 #7832D0 #9864DB

Accessibility & contrast

On white

9.47
#5B25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25A0
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25A0#FFFFFF#000000##FFFFFF
##5B25A01.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#494661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b25a0;
/* rgb */ color: rgb(91, 37, 160);
/* oklch */ color: oklch(41.6% 0.184 297.7);
Tailwind
colors: {
  custom: {
    50: '#9066bd',
    500: '#5b25a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b25a0;
$custom-light: #9066bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25a0",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 266.341,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41563,
    "c": 0.18352,
    "h": 297.7
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#5B25A0
secondary
#96C160
accent
#E6429E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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