#5B25B0#5B25B0

#5B25B0 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.201 H 293.7°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5B25B0
RGBrgb(91, 37, 176)
HSLhsl(263, 65%, 42%)
HSVhsv(263, 79%, 69%)
CMYKcmyk(48.3%, 79%, 0%, 31%)
CIE-LABlab(31.07, 53.47, -64.06)
CIE-LCHlch(31.07, 83.44, 309.85°)
OKLaboklab(43.01% 0.0807 -0.1838)
OKLCHoklch(43.01% 0.201 293.7)
XYZxyz(12.8103, 6.6815, 41.6806)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25B0 #7AB025
analogous
#2535B0 #5B25B0 #A125B0
triadic
#5B25B0 #B05B25 #25B05B
tetradic
#5B25B0 #B02535 #7AB025 #25B0A1
square
#5B25B0 #B02535 #7AB025 #25B0A1
split-complementary
#5B25B0 #B0A125 #35B025
monochromatic
#27104B #411A7D #5B25B0 #783CD6 #9B6FE1

Accessibility & contrast

On white

8.99
#5B25B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B25B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25B0
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25B0#FFFFFF#000000##FFFFFF
##5B25B01.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#414C6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b25b0;
/* rgb */ color: rgb(91, 37, 176);
/* oklch */ color: oklch(43.0% 0.201 293.7);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5b25b0',
    950: '#000000',
  },
}
SCSS
$custom: #5b25b0;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25b0",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 263.309,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43014,
    "c": 0.20075,
    "h": 293.7
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#5B25B0
secondary
#A3C76A
accent
#E840A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25B0

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

Preview Lab → · Contrast checker → · Palette generator →

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