#5C25A6#5C25A6

#5C25A6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.190 H 296.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5C25A6
RGBrgb(92, 37, 166)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(44.6%, 77.7%, 0%, 34.9%)
CIE-LABlab(30.28, 51.04, -59.35)
CIE-LCHlch(30.28, 78.27, 310.69°)
OKLaboklab(42.21% 0.0851 -0.17)
OKLCHoklch(42.21% 0.19 296.6)
XYZxyz(11.9563, 6.3514, 36.6650)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C25A6 #6FA625
analogous
#252FA6 #5C25A6 #9C25A6
triadic
#5C25A6 #A65C25 #25A65C
tetradic
#5C25A6 #A6252F #6FA625 #25A69C
square
#5C25A6 #A6252F #6FA625 #25A69C
split-complementary
#5C25A6 #A69C25 #2FA625
monochromatic
#250F42 #401A74 #5C25A6 #7936D2 #9A68DD

Accessibility & contrast

On white

9.25
#5C25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C25A6
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C25A6#FFFFFF#000000##FFFFFF
##5C25A61.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#484865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c25a6;
/* rgb */ color: rgb(92, 37, 166);
/* oklch */ color: oklch(42.2% 0.190 296.6);
Tailwind
colors: {
  custom: {
    50: '#9266c1',
    500: '#5c25a6',
    950: '#000000',
  },
}
SCSS
$custom: #5c25a6;
$custom-light: #9266c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c25a6",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 265.581,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.1901,
    "h": 296.6
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#5C25A6
secondary
#9AC364
accent
#E741A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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