#5C25B1#5C25B1

#5C25B1 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.202 H 293.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5C25B1
RGBrgb(92, 37, 177)
HSLhsl(264, 65%, 42%)
HSVhsv(264, 79%, 69%)
CMYKcmyk(48%, 79.1%, 0%, 30.6%)
CIE-LABlab(31.28, 53.87, -64.31)
CIE-LCHlch(31.28, 83.89, 309.95°)
OKLaboklab(43.22% 0.0819 -0.1845)
OKLCHoklch(43.22% 0.202 293.9)
XYZxyz(13.0088, 6.7724, 42.2082)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C25B1 #7AB125
analogous
#2534B1 #5C25B1 #A225B1
triadic
#5C25B1 #B15C25 #25B15C
tetradic
#5C25B1 #B12534 #7AB125 #25B1A2
square
#5C25B1 #B12534 #7AB125 #25B1A2
split-complementary
#5C25B1 #B1A225 #34B125
monochromatic
#27104C #421A7E #5C25B1 #793DD6 #9C6FE1

Accessibility & contrast

On white

8.92
#5C25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C25B1
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C25B1#FFFFFF#000000##FFFFFF
##5C25B11.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#424D6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c25b1;
/* rgb */ color: rgb(92, 37, 177);
/* oklch */ color: oklch(43.2% 0.202 293.9);
Tailwind
colors: {
  custom: {
    50: '#9367c9',
    500: '#5c25b1',
    950: '#000000',
  },
}
SCSS
$custom: #5c25b1;
$custom-light: #9367c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c25b1",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 263.571,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43217,
    "c": 0.20187,
    "h": 293.9
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#5C25B1
secondary
#A3C86A
accent
#E83FA6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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