#5B25B1#5B25B1

#5B25B1 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.202 H 293.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5B25B1
RGBrgb(91, 37, 177)
HSLhsl(263, 65%, 42%)
HSVhsv(263, 79%, 69%)
CMYKcmyk(48.6%, 79.1%, 0%, 30.6%)
CIE-LABlab(31.16, 53.73, -64.51)
CIE-LCHlch(31.16, 83.95, 309.79°)
OKLaboklab(43.11% 0.0804 -0.1851)
OKLCHoklch(43.11% 0.202 293.5)
XYZxyz(12.9096, 6.7212, 42.2036)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25B1 #7BB125
analogous
#2535B1 #5B25B1 #A125B1
triadic
#5B25B1 #B15B25 #25B15B
tetradic
#5B25B1 #B12535 #7BB125 #25B1A1
square
#5B25B1 #B12535 #7BB125 #25B1A1
split-complementary
#5B25B1 #B1A125 #35B125
monochromatic
#27104C #411A7E #5B25B1 #783DD6 #9B6FE1

Accessibility & contrast

On white

8.96
#5B25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B25B1
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25B1#FFFFFF#000000##FFFFFF
##5B25B11.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#404D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b25b1;
/* rgb */ color: rgb(91, 37, 177);
/* oklch */ color: oklch(43.1% 0.202 293.5);
Tailwind
colors: {
  custom: {
    50: '#9267c9',
    500: '#5b25b1',
    950: '#000000',
  },
}
SCSS
$custom: #5b25b1;
$custom-light: #9267c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25b1",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 263.143,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43107,
    "c": 0.20182,
    "h": 293.5
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#5B25B1
secondary
#A4C86A
accent
#E83FA7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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