#5C25B2#5C25B2

#5C25B2 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.3% C 0.203 H 293.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5C25B2
RGBrgb(92, 37, 178)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 79%, 70%)
CMYKcmyk(48.3%, 79.2%, 0%, 30.2%)
CIE-LABlab(31.38, 54.13, -64.75)
CIE-LCHlch(31.38, 84.39, 309.89°)
OKLaboklab(43.31% 0.0816 -0.1858)
OKLCHoklch(43.31% 0.203 293.7)
XYZxyz(13.1089, 6.8124, 42.7351)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C25B2 #7BB225
analogous
#2535B2 #5C25B2 #A225B2
triadic
#5C25B2 #B25C25 #25B25C
tetradic
#5C25B2 #B22535 #7BB225 #25B2A2
square
#5C25B2 #B22535 #7BB225 #25B2A2
split-complementary
#5C25B2 #B2A225 #35B225
monochromatic
#28104D #421A7F #5C25B2 #793DD7 #9C70E1

Accessibility & contrast

On white

8.89
#5C25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5C25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C25B2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C25B2#FFFFFF#000000##FFFFFF
##5C25B21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#414D6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c25b2;
/* rgb */ color: rgb(92, 37, 178);
/* oklch */ color: oklch(43.3% 0.203 293.7);
Tailwind
colors: {
  custom: {
    50: '#9367ca',
    500: '#5c25b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c25b2;
$custom-light: #9367ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c25b2",
  "rgb": {
    "r": 92,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 263.404,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4331,
    "c": 0.20294,
    "h": 293.7
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#5C25B2
secondary
#A4C86B
accent
#E93FA7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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