#4C2AB6#4C2AB6

#4C2AB6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.6% C 0.203 H 285.0°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#4C2AB6
RGBrgb(76, 42, 182)
HSLhsl(255, 63%, 44%)
HSVhsv(255, 77%, 71%)
CMYKcmyk(58.2%, 76.9%, 0%, 28.6%)
CIE-LABlab(30.81, 50.81, -68.13)
CIE-LCHlch(30.81, 84.99, 306.72°)
OKLaboklab(42.62% 0.0525 -0.1963)
OKLCHoklch(42.62% 0.203 285)
XYZxyz(12.2494, 6.5691, 44.8694)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AB6 #94B62A
analogous
#2A4EB6 #4C2AB6 #922AB6
triadic
#4C2AB6 #B64C2A #2AB64C
tetradic
#4C2AB6 #B62A4E #94B62A #2AB692
square
#4C2AB6 #B62A4E #94B62A #2AB692
split-complementary
#4C2AB6 #B6922A #4EB62A
monochromatic
#221353 #371F84 #4C2AB6 #6A48D5 #937AE0

Accessibility & contrast

On white

9.08
#4C2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4C2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AB6
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AB6#FFFFFF#000000##FFFFFF
##4C2AB61.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#10526F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2ab6;
/* rgb */ color: rgb(76, 42, 182);
/* oklch */ color: oklch(42.6% 0.203 285.0);
Tailwind
colors: {
  custom: {
    50: '#8a68cd',
    500: '#4c2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ab6;
$custom-light: #8a68cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ab6",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 254.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.20318,
    "h": 285
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#4C2AB6
secondary
#B4C873
accent
#E642BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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