#4C2BA9#4C2BA9

#4C2BA9 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.187 H 287.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA9
RGBrgb(76, 43, 169)
HSLhsl(256, 59%, 42%)
HSVhsv(256, 75%, 66%)
CMYKcmyk(55%, 74.6%, 0%, 33.7%)
CIE-LABlab(29.73, 46.56, -62.12)
CIE-LCHlch(29.73, 77.64, 306.85°)
OKLaboklab(41.49% 0.0552 -0.1787)
OKLCHoklch(41.49% 0.187 287.2)
XYZxyz(11.0037, 6.1282, 38.1315)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA9 #88A92B
analogous
#2B49A9 #4C2BA9 #8B2BA9
triadic
#4C2BA9 #A94C2B #2BA94C
tetradic
#4C2BA9 #A92B49 #88A92B #2BA98B
square
#4C2BA9 #A92B49 #88A92B #2BA98B
split-complementary
#4C2BA9 #A98B2B #49A92B
monochromatic
#201247 #361F78 #4C2BA9 #6742CF #8E73DB

Accessibility & contrast

On white

9.43
#4C2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA9
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA9#FFFFFF#000000##FFFFFF
##4C2BA91.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#244E68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ba9;
/* rgb */ color: rgb(76, 43, 169);
/* oklch */ color: oklch(41.5% 0.187 287.2);
Tailwind
colors: {
  custom: {
    50: '#8868c4',
    500: '#4c2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba9;
$custom-light: #8868c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba9",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 255.714,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41494,
    "c": 0.18703,
    "h": 287.2
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#4C2BA9
secondary
#ACC36D
accent
#E345B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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