#4C2DB6#4C2DB6

#4C2DB6 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.0% C 0.200 H 284.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4C2DB6
RGBrgb(76, 45, 182)
HSLhsl(254, 60%, 45%)
HSVhsv(254, 75%, 71%)
CMYKcmyk(58.2%, 75.3%, 0%, 28.6%)
CIE-LABlab(31.32, 49.33, -67.28)
CIE-LCHlch(31.32, 83.43, 306.25°)
OKLaboklab(42.99% 0.0504 -0.1938)
OKLCHoklch(42.99% 0.2 284.6)
XYZxyz(12.3598, 6.7899, 44.9062)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DB6 #97B62D
analogous
#2D52B6 #4C2DB6 #912DB6
triadic
#4C2DB6 #B64C2D #2DB64C
tetradic
#4C2DB6 #B62D52 #97B62D #2DB691
square
#4C2DB6 #B62D52 #97B62D #2DB691
split-complementary
#4C2DB6 #B6912D #52B62D
monochromatic
#231554 #382185 #4C2DB6 #6B4DD3 #947EDF

Accessibility & contrast

On white

8.91
#4C2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4C2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DB6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DB6#FFFFFF#000000##FFFFFF
##4C2DB61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#105470
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2db6;
/* rgb */ color: rgb(76, 45, 182);
/* oklch */ color: oklch(43.0% 0.200 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a6acd',
    500: '#4c2db6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2db6;
$custom-light: #8a6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2db6",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 253.577,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.20026,
    "h": 284.6
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#4C2DB6
secondary
#B6C877
accent
#E344BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

#4C2DB6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva