#5B25A8#5B25A8

#5B25A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.192 H 295.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5B25A8
RGBrgb(91, 37, 168)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 66%)
CMYKcmyk(45.8%, 78%, 0%, 34.1%)
CIE-LABlab(30.34, 51.39, -60.47)
CIE-LCHlch(30.34, 79.36, 310.36°)
OKLaboklab(42.28% 0.083 -0.1733)
OKLCHoklch(42.28% 0.192 295.6)
XYZxyz(12.0419, 6.3741, 37.6341)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25A8 #72A825
analogous
#2530A8 #5B25A8 #9C25A8
triadic
#5B25A8 #A85B25 #25A85B
tetradic
#5B25A8 #A82530 #72A825 #25A89C
square
#5B25A8 #A82530 #72A825 #25A89C
split-complementary
#5B25A8 #A89C25 #30A825
monochromatic
#250F44 #401A76 #5B25A8 #7737D3 #9969DE

Accessibility & contrast

On white

9.23
#5B25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25A8
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25A8#FFFFFF#000000##FFFFFF
##5B25A81.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#454966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b25a8;
/* rgb */ color: rgb(91, 37, 168);
/* oklch */ color: oklch(42.3% 0.192 295.6);
Tailwind
colors: {
  custom: {
    50: '#9166c3',
    500: '#5b25a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b25a8;
$custom-light: #9166c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25a8",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 264.733,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42279,
    "c": 0.19216,
    "h": 295.6
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#5B25A8
secondary
#9DC465
accent
#E741A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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