#4C2BAE#4C2BAE

#4C2BAE is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.193 H 286.2°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4C2BAE
RGBrgb(76, 43, 174)
HSLhsl(255, 60%, 43%)
HSVhsv(255, 75%, 68%)
CMYKcmyk(56.3%, 75.3%, 0%, 31.8%)
CIE-LABlab(30.20, 48.01, -64.35)
CIE-LCHlch(30.20, 80.29, 306.73°)
OKLaboklab(41.97% 0.0539 -0.1852)
OKLCHoklch(41.97% 0.193 286.2)
XYZxyz(11.4821, 6.3196, 40.6510)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BAE #8DAE2B
analogous
#2B4BAE #4C2BAE #8E2BAE
triadic
#4C2BAE #AE4C2B #2BAE4C
tetradic
#4C2BAE #AE2B4B #8DAE2B #2BAE8E
square
#4C2BAE #AE2B4B #8DAE2B #2BAE8E
split-complementary
#4C2BAE #AE8E2B #4BAE2B
monochromatic
#21134C #371F7D #4C2BAE #6845D1 #9076DD

Accessibility & contrast

On white

9.28
#4C2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BAE
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BAE#FFFFFF#000000##FFFFFF
##4C2BAE1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#1E506B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2bae;
/* rgb */ color: rgb(76, 43, 174);
/* oklch */ color: oklch(42.0% 0.193 286.2);
Tailwind
colors: {
  custom: {
    50: '#8968c7',
    500: '#4c2bae',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bae;
$custom-light: #8968c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bae",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 255.115,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41969,
    "c": 0.19292,
    "h": 286.2
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#4C2BAE
secondary
#AFC570
accent
#E444BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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