#5C2DA7#5C2DA7

#5C2DA7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.183 H 295.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA7
RGBrgb(92, 45, 167)
HSLhsl(263, 58%, 42%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(44.9%, 73.1%, 0%, 34.5%)
CIE-LABlab(31.67, 47.59, -57.67)
CIE-LCHlch(31.67, 74.77, 309.53°)
OKLaboklab(43.22% 0.0778 -0.1651)
OKLCHoklch(43.22% 0.183 295.2)
XYZxyz(12.3252, 6.9418, 37.2422)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA7 #78A72D
analogous
#2D3BA7 #5C2DA7 #992DA7
triadic
#5C2DA7 #A75C2D #2DA75C
tetradic
#5C2DA7 #A72D3B #78A72D #2DA799
square
#5C2DA7 #A72D3B #78A72D #2DA799
split-complementary
#5C2DA7 #A7992D #3BA72D
monochromatic
#271347 #412077 #5C2DA7 #7944CD #9C75DA

Accessibility & contrast

On white

8.79
#5C2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5C2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA7
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA7#FFFFFF#000000##FFFFFF
##5C2DA71.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#474C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c2da7;
/* rgb */ color: rgb(92, 45, 167);
/* oklch */ color: oklch(43.2% 0.183 295.2);
Tailwind
colors: {
  custom: {
    50: '#916ac2',
    500: '#5c2da7',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da7;
$custom-light: #916ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da7",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 263.115,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43219,
    "c": 0.18253,
    "h": 295.2
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#5C2DA7
secondary
#A1C16E
accent
#E147A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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