#4C2CB3#4C2CB3

#4C2CB3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.198 H 285.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4C2CB3
RGBrgb(76, 44, 179)
HSLhsl(254, 61%, 44%)
HSVhsv(254, 75%, 70%)
CMYKcmyk(57.5%, 75.4%, 0%, 29.8%)
CIE-LABlab(30.86, 48.96, -66.26)
CIE-LCHlch(30.86, 82.39, 306.46°)
OKLaboklab(42.57% 0.0519 -0.1908)
OKLCHoklch(42.57% 0.198 285.2)
XYZxyz(12.0154, 6.5918, 43.2783)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CB3 #93B32C
analogous
#2C4FB3 #4C2CB3 #8F2CB3
triadic
#4C2CB3 #B34C2C #2CB34C
tetradic
#4C2CB3 #B32C4F #93B32C #2CB38F
square
#4C2CB3 #B32C4F #93B32C #2CB38F
split-complementary
#4C2CB3 #B38F2C #4FB32C
monochromatic
#221451 #372082 #4C2CB3 #6A4AD2 #927BDF

Accessibility & contrast

On white

9.06
#4C2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4C2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CB3
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CB3#FFFFFF#000000##FFFFFF
##4C2CB31.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#16526E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2cb3;
/* rgb */ color: rgb(76, 44, 179);
/* oklch */ color: oklch(42.6% 0.198 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a69cb',
    500: '#4c2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cb3;
$custom-light: #8a69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cb3",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 254.222,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42574,
    "c": 0.19775,
    "h": 285.2
  },
  "luminance": 0.06593
}

Semantic roles & 50–950 ramp

primary
#4C2CB3
secondary
#B3C774
accent
#E444BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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