#4C2AB3#4C2AB3

#4C2AB3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.200 H 285.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4C2AB3
RGBrgb(76, 42, 179)
HSLhsl(255, 62%, 43%)
HSVhsv(255, 77%, 70%)
CMYKcmyk(57.5%, 76.5%, 0%, 29.8%)
CIE-LABlab(30.51, 49.95, -66.83)
CIE-LCHlch(30.51, 83.43, 306.78°)
OKLaboklab(42.33% 0.0533 -0.1925)
OKLCHoklch(42.33% 0.2 285.5)
XYZxyz(11.9427, 6.4464, 43.2541)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AB3 #91B32A
analogous
#2A4CB3 #4C2AB3 #912AB3
triadic
#4C2AB3 #B34C2A #2AB34C
tetradic
#4C2AB3 #B32A4C #91B32A #2AB391
square
#4C2AB3 #B32A4C #91B32A #2AB391
split-complementary
#4C2AB3 #B3912A #4CB32A
monochromatic
#221350 #371E81 #4C2AB3 #6A46D4 #9278DF

Accessibility & contrast

On white

9.17
#4C2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4C2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AB3
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AB3#FFFFFF#000000##FFFFFF
##4C2AB31.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#17516D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2ab3;
/* rgb */ color: rgb(76, 42, 179);
/* oklch */ color: oklch(42.3% 0.200 285.5);
Tailwind
colors: {
  custom: {
    50: '#8a68cb',
    500: '#4c2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ab3;
$custom-light: #8a68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ab3",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 254.891,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4233,
    "c": 0.19973,
    "h": 285.5
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#4C2AB3
secondary
#B2C772
accent
#E543BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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