#5C2285#5C2285

#5C2285 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.158 H 307.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5C2285
RGBrgb(92, 34, 133)
HSLhsl(275, 59%, 33%)
HSVhsv(275, 74%, 52%)
CMYKcmyk(30.8%, 74.4%, 0%, 47.8%)
CIE-LABlab(27.05, 44.15, -44.34)
CIE-LCHlch(27.05, 62.57, 314.88°)
OKLaboklab(39.08% 0.0957 -0.1259)
OKLCHoklch(39.08% 0.158 307.2)
XYZxyz(9.2184, 5.1129, 22.6870)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2285 #4B8522
analogous
#2B2285 #5C2285 #85227C
triadic
#5C2285 #855C22 #22855C
tetradic
#5C2285 #852B22 #4B8522 #227C85
square
#5C2285 #852B22 #4B8522 #227C85
split-complementary
#5C2285 #7C8522 #22852B
monochromatic
#190924 #3A1654 #5C2285 #7E2EB6 #9C4FD2

Accessibility & contrast

On white

10.38
#5C2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2285
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2285#FFFFFF#000000##FFFFFF
##5C22851.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#553951
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2285;
/* rgb */ color: rgb(92, 34, 133);
/* oklch */ color: oklch(39.1% 0.158 307.2);
Tailwind
colors: {
  custom: {
    50: '#8e63a9',
    500: '#5c2285',
    950: '#000000',
  },
}
SCSS
$custom: #5c2285;
$custom-light: #8e63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2285",
  "rgb": {
    "r": 92,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 275.152,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.1581,
    "h": 307.2
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#5C2285
secondary
#78B64D
accent
#E24586
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2285

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

Preview Lab → · Contrast checker → · Palette generator →

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