#4C2DA2#4C2DA2

#4C2DA2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.176 H 288.2°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA2
RGBrgb(76, 45, 162)
HSLhsl(256, 57%, 41%)
HSVhsv(256, 72%, 64%)
CMYKcmyk(53.1%, 72.2%, 0%, 36.5%)
CIE-LABlab(29.47, 43.47, -58.34)
CIE-LCHlch(29.47, 72.75, 306.69°)
OKLaboklab(41.11% 0.0551 -0.1676)
OKLCHoklch(41.11% 0.176 288.2)
XYZxyz(10.4386, 6.0214, 34.7876)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA2 #83A22D
analogous
#2D49A2 #4C2DA2 #862DA2
triadic
#4C2DA2 #A24C2D #2DA24C
tetradic
#4C2DA2 #A22D49 #83A22D #2DA286
square
#4C2DA2 #A22D49 #83A22D #2DA286
split-complementary
#4C2DA2 #A2862D #49A22D
monochromatic
#1F1242 #362072 #4C2DA2 #6642CA #8D72D8

Accessibility & contrast

On white

9.53
#4C2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA2
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA2#FFFFFF#000000##FFFFFF
##4C2DA21.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#2B4C64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2da2;
/* rgb */ color: rgb(76, 45, 162);
/* oklch */ color: oklch(41.1% 0.176 288.2);
Tailwind
colors: {
  custom: {
    50: '#8769bf',
    500: '#4c2da2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da2;
$custom-light: #8769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da2",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 255.897,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41109,
    "c": 0.17644,
    "h": 288.2
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#4C2DA2
secondary
#A9BF6C
accent
#E048B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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