#5B25A7#5B25A7

#5B25A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.191 H 295.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5B25A7
RGBrgb(91, 37, 167)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(45.5%, 77.8%, 0%, 34.5%)
CIE-LABlab(30.25, 51.14, -60.01)
CIE-LCHlch(30.25, 78.84, 310.43°)
OKLaboklab(42.19% 0.0833 -0.172)
OKLCHoklch(42.19% 0.191 295.9)
XYZxyz(11.9491, 6.3370, 37.1453)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25A7 #71A725
analogous
#2530A7 #5B25A7 #9C25A7
triadic
#5B25A7 #A75B25 #25A75B
tetradic
#5B25A7 #A72530 #71A725 #25A79C
square
#5B25A7 #A72530 #71A725 #25A79C
split-complementary
#5B25A7 #A79C25 #30A725
monochromatic
#240F43 #401A75 #5B25A7 #7737D3 #9969DE

Accessibility & contrast

On white

9.26
#5B25A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B25A7
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25A7#FFFFFF#000000##FFFFFF
##5B25A71.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#464965
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b25a7;
/* rgb */ color: rgb(91, 37, 167);
/* oklch */ color: oklch(42.2% 0.191 295.9);
Tailwind
colors: {
  custom: {
    50: '#9166c2',
    500: '#5b25a7',
    950: '#000000',
  },
}
SCSS
$custom: #5b25a7;
$custom-light: #9166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25a7",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 264.923,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.42188,
    "c": 0.19109,
    "h": 295.9
  },
  "luminance": 0.06337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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