#4C2DB7#4C2DB7

#4C2DB7 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.1% C 0.201 H 284.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#4C2DB7
RGBrgb(76, 45, 183)
HSLhsl(253, 61%, 45%)
HSVhsv(253, 75%, 72%)
CMYKcmyk(58.5%, 75.4%, 0%, 28.2%)
CIE-LABlab(31.42, 49.63, -67.71)
CIE-LCHlch(31.42, 83.95, 306.24°)
OKLaboklab(43.09% 0.0501 -0.1951)
OKLCHoklch(43.09% 0.201 284.4)
XYZxyz(12.4635, 6.8314, 45.4524)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DB7 #98B72D
analogous
#2D53B7 #4C2DB7 #912DB7
triadic
#4C2DB7 #B74C2D #2DB74C
tetradic
#4C2DB7 #B72D53 #98B72D #2DB791
square
#4C2DB7 #B72D53 #98B72D #2DB791
split-complementary
#4C2DB7 #B7912D #53B72D
monochromatic
#231555 #382186 #4C2DB7 #6C4ED3 #957FDF

Accessibility & contrast

On white

8.87
#4C2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4C2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DB7
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DB7#FFFFFF#000000##FFFFFF
##4C2DB71.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#0D5470
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2db7;
/* rgb */ color: rgb(76, 45, 183);
/* oklch */ color: oklch(43.1% 0.201 284.4);
Tailwind
colors: {
  custom: {
    50: '#8a6ace',
    500: '#4c2db7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2db7;
$custom-light: #8a6ace;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2db7",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 253.478,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43085,
    "c": 0.20142,
    "h": 284.4
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#4C2DB7
secondary
#B6C878
accent
#E444C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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