#4C2BA3#4C2BA3

#4C2BA3 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.180 H 288.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA3
RGBrgb(76, 43, 163)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 74%, 64%)
CMYKcmyk(53.4%, 73.6%, 0%, 36.1%)
CIE-LABlab(29.18, 44.82, -59.41)
CIE-LCHlch(29.18, 74.42, 307.03°)
OKLaboklab(40.93% 0.0566 -0.1708)
OKLCHoklch(40.93% 0.18 288.3)
XYZxyz(10.4533, 5.9081, 35.2328)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA3 #82A32B
analogous
#2B46A3 #4C2BA3 #882BA3
triadic
#4C2BA3 #A34C2B #2BA34C
tetradic
#4C2BA3 #A32B46 #82A32B #2BA388
square
#4C2BA3 #A32B46 #82A32B #2BA388
split-complementary
#4C2BA3 #A3882B #46A32B
monochromatic
#1F1142 #351E73 #4C2BA3 #663FCC #8C6FD9

Accessibility & contrast

On white

9.63
#4C2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4C2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA3
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA3#FFFFFF#000000##FFFFFF
##4C2BA31.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#2A4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2ba3;
/* rgb */ color: rgb(76, 43, 163);
/* oklch */ color: oklch(40.9% 0.180 288.3);
Tailwind
colors: {
  custom: {
    50: '#8768bf',
    500: '#4c2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba3;
$custom-light: #8768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba3",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 256.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40933,
    "c": 0.17991,
    "h": 288.3
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#4C2BA3
secondary
#A8C06A
accent
#E146B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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