#5B25A5#5B25A5

#5B25A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.189 H 296.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5B25A5
RGBrgb(91, 37, 165)
HSLhsl(265, 63%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(44.8%, 77.6%, 0%, 35.3%)
CIE-LABlab(30.07, 50.62, -59.10)
CIE-LCHlch(30.07, 77.81, 310.58°)
OKLaboklab(42.01% 0.0839 -0.1693)
OKLCHoklch(42.01% 0.189 296.4)
XYZxyz(11.7657, 6.2636, 36.1791)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25A5 #6FA525
analogous
#252FA5 #5B25A5 #9B25A5
triadic
#5B25A5 #A55B25 #25A55B
tetradic
#5B25A5 #A5252F #6FA525 #25A59B
square
#5B25A5 #A5252F #6FA525 #25A59B
split-complementary
#5B25A5 #A59B25 #2FA525
monochromatic
#240F41 #3F1A73 #5B25A5 #7735D2 #9967DD

Accessibility & contrast

On white

9.32
#5B25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25A5
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25A5#FFFFFF#000000##FFFFFF
##5B25A51.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#474864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b25a5;
/* rgb */ color: rgb(91, 37, 165);
/* oklch */ color: oklch(42.0% 0.189 296.4);
Tailwind
colors: {
  custom: {
    50: '#9166c1',
    500: '#5b25a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b25a5;
$custom-light: #9166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25a5",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 265.313,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42008,
    "c": 0.18893,
    "h": 296.4
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#5B25A5
secondary
#9AC363
accent
#E641A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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