#4C2DA7#4C2DA7

#4C2DA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.182 H 287.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4C2DA7
RGBrgb(76, 45, 167)
HSLhsl(255, 58%, 42%)
HSVhsv(255, 73%, 65%)
CMYKcmyk(54.5%, 73.1%, 0%, 34.5%)
CIE-LABlab(29.92, 44.94, -60.62)
CIE-LCHlch(29.92, 75.46, 306.55°)
OKLaboklab(41.57% 0.054 -0.1743)
OKLCHoklch(41.57% 0.182 287.2)
XYZxyz(10.8919, 6.2027, 37.1751)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DA7 #88A72D
analogous
#2D4BA7 #4C2DA7 #892DA7
triadic
#4C2DA7 #A74C2D #2DA74C
tetradic
#4C2DA7 #A72D4B #88A72D #2DA789
square
#4C2DA7 #A72D4B #88A72D #2DA789
split-complementary
#4C2DA7 #A7892D #4BA72D
monochromatic
#201347 #362077 #4C2DA7 #6744CD #8E75DA

Accessibility & contrast

On white

9.37
#4C2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4C2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DA7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DA7#FFFFFF#000000##FFFFFF
##4C2DA71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#264E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2da7;
/* rgb */ color: rgb(76, 45, 167);
/* oklch */ color: oklch(41.6% 0.182 287.2);
Tailwind
colors: {
  custom: {
    50: '#8869c2',
    500: '#4c2da7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2da7;
$custom-light: #8869c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2da7",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 255.246,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41568,
    "c": 0.18248,
    "h": 287.2
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#4C2DA7
secondary
#ACC16E
accent
#E147BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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