#4C2BA6#4C2BA6

#4C2BA6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.183 H 287.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA6
RGBrgb(76, 43, 166)
HSLhsl(256, 59%, 41%)
HSVhsv(256, 74%, 65%)
CMYKcmyk(54.2%, 74.1%, 0%, 34.9%)
CIE-LABlab(29.46, 45.69, -60.77)
CIE-LCHlch(29.46, 76.03, 306.94°)
OKLaboklab(41.21% 0.0559 -0.1747)
OKLCHoklch(41.21% 0.183 287.7)
XYZxyz(10.7253, 6.0169, 36.6652)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA6 #85A62B
analogous
#2B47A6 #4C2BA6 #892BA6
triadic
#4C2BA6 #A64C2B #2BA64C
tetradic
#4C2BA6 #A62B47 #85A62B #2BA689
square
#4C2BA6 #A62B47 #85A62B #2BA689
split-complementary
#4C2BA6 #A6892B #47A62B
monochromatic
#1F1245 #361E75 #4C2BA6 #6641CE #8D71DA

Accessibility & contrast

On white

9.53
#4C2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA6
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA6#FFFFFF#000000##FFFFFF
##4C2BA61.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#274C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2ba6;
/* rgb */ color: rgb(76, 43, 166);
/* oklch */ color: oklch(41.2% 0.183 287.7);
Tailwind
colors: {
  custom: {
    50: '#8868c1',
    500: '#4c2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba6;
$custom-light: #8868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba6",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 256.098,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41213,
    "c": 0.18347,
    "h": 287.7
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#4C2BA6
secondary
#AAC16B
accent
#E246B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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