#5C25A5#5C25A5

#5C25A5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.189 H 296.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5C25A5
RGBrgb(92, 37, 165)
HSLhsl(266, 63%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(44.2%, 77.6%, 0%, 35.3%)
CIE-LABlab(30.19, 50.78, -58.89)
CIE-LCHlch(30.19, 77.76, 310.77°)
OKLaboklab(42.12% 0.0854 -0.1686)
OKLCHoklch(42.12% 0.189 296.9)
XYZxyz(11.8649, 6.3148, 36.1838)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C25A5 #6EA525
analogous
#252EA5 #5C25A5 #9C25A5
triadic
#5C25A5 #A55C25 #25A55C
tetradic
#5C25A5 #A5252E #6EA525 #25A59C
square
#5C25A5 #A5252E #6EA525 #25A59C
split-complementary
#5C25A5 #A59C25 #2EA525
monochromatic
#240F41 #401A73 #5C25A5 #7935D2 #9A67DD

Accessibility & contrast

On white

9.28
#5C25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5C25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C25A5
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C25A5#FFFFFF#000000##FFFFFF
##5C25A51.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#484864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c25a5;
/* rgb */ color: rgb(92, 37, 165);
/* oklch */ color: oklch(42.1% 0.189 296.9);
Tailwind
colors: {
  custom: {
    50: '#9166c1',
    500: '#5c25a5',
    950: '#000000',
  },
}
SCSS
$custom: #5c25a5;
$custom-light: #9166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c25a5",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 265.781,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42124,
    "c": 0.18903,
    "h": 296.9
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

primary
#5C25A5
secondary
#9AC363
accent
#E641A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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