#5C25A0#5C25A0

#5C25A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.184 H 298.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5C25A0
RGBrgb(92, 37, 160)
HSLhsl(267, 62%, 39%)
HSVhsv(267, 77%, 63%)
CMYKcmyk(42.5%, 76.9%, 0%, 37.3%)
CIE-LABlab(29.75, 49.50, -56.58)
CIE-LCHlch(29.75, 75.18, 311.18°)
OKLaboklab(41.68% 0.0867 -0.1619)
OKLCHoklch(41.68% 0.184 298.2)
XYZxyz(11.4187, 6.1363, 33.8337)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C25A0 #69A025
analogous
#252BA0 #5C25A0 #9925A0
triadic
#5C25A0 #A05C25 #25A05C
tetradic
#5C25A0 #A0252B #69A025 #25A099
square
#5C25A0 #A0252B #69A025 #25A099
split-complementary
#5C25A0 #A09925 #2BA025
monochromatic
#230E3D #3F1A6E #5C25A0 #7932D0 #9964DB

Accessibility & contrast

On white

9.43
#5C25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5C25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C25A0
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C25A0#FFFFFF#000000##FFFFFF
##5C25A01.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#4B4661
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5c25a0;
/* rgb */ color: rgb(92, 37, 160);
/* oklch */ color: oklch(41.7% 0.184 298.2);
Tailwind
colors: {
  custom: {
    50: '#9166bd',
    500: '#5c25a0',
    950: '#000000',
  },
}
SCSS
$custom: #5c25a0;
$custom-light: #9166bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c25a0",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 266.829,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4168,
    "c": 0.18364,
    "h": 298.2
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#5C25A0
secondary
#96C160
accent
#E6429D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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