#5B25C6#5B25C6

#5B25C6 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.224 H 289.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5B25C6
RGBrgb(91, 37, 198)
HSLhsl(260, 69%, 46%)
HSVhsv(260, 81%, 78%)
CMYKcmyk(54%, 81.3%, 0%, 22.4%)
CIE-LABlab(33.19, 59.18, -73.59)
CIE-LCHlch(33.19, 94.44, 308.81°)
OKLaboklab(45.12% 0.0735 -0.2117)
OKLCHoklch(45.12% 0.224 289.1)
XYZxyz(15.1660, 7.6238, 54.0875)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B25C6 #90C625
analogous
#253FC6 #5B25C6 #AB25C6
triadic
#5B25C6 #C65B25 #25C65B
tetradic
#5B25C6 #C6253F #90C625 #25C6AB
square
#5B25C6 #C6253F #90C625 #25C6AB
split-complementary
#5B25C6 #C6AB25 #3FC625
monochromatic
#2C125F #431B92 #5B25C6 #7C4BDD #A17EE7

Accessibility & contrast

On white

8.32
#5B25C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B25C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B25C6
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B25C6#FFFFFF#000000##FFFFFF
##5B25C61.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#2F5677
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b25c6;
/* rgb */ color: rgb(91, 37, 198);
/* oklch */ color: oklch(45.1% 0.224 289.1);
Tailwind
colors: {
  custom: {
    50: '#9568d9',
    500: '#5b25c6',
    950: '#000000',
  },
}
SCSS
$custom: #5b25c6;
$custom-light: #9568d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b25c6",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 198
  },
  "hsl": {
    "h": 260.124,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.22411,
    "h": 289.1
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#5B25C6
secondary
#B2CF77
accent
#EB3CB1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5B25C6

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

Preview Lab → · Contrast checker → · Palette generator →

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