#4C2CB0#4C2CB0

#4C2CB0 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.194 H 285.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4C2CB0
RGBrgb(76, 44, 176)
HSLhsl(255, 60%, 43%)
HSVhsv(255, 75%, 69%)
CMYKcmyk(56.8%, 75%, 0%, 31%)
CIE-LABlab(30.57, 48.09, -64.94)
CIE-LCHlch(30.57, 80.81, 306.52°)
OKLaboklab(42.29% 0.0527 -0.187)
OKLCHoklch(42.29% 0.194 285.7)
XYZxyz(11.7153, 6.4718, 41.6977)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CB0 #90B02C
analogous
#2C4EB0 #4C2CB0 #8E2CB0
triadic
#4C2CB0 #B04C2C #2CB04C
tetradic
#4C2CB0 #B02C4E #90B02C #2CB08E
square
#4C2CB0 #B02C4E #90B02C #2CB08E
split-complementary
#4C2CB0 #B08E2C #4EB02C
monochromatic
#22144E #37207F #4C2CB0 #6948D1 #9179DD

Accessibility & contrast

On white

9.15
#4C2CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2CB0
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CB0#FFFFFF#000000##FFFFFF
##4C2CB01.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0044AE
Tritanopia (blue-blind)
#1B516C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2cb0;
/* rgb */ color: rgb(76, 44, 176);
/* oklch */ color: oklch(42.3% 0.194 285.7);
Tailwind
colors: {
  custom: {
    50: '#8969c9',
    500: '#4c2cb0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cb0;
$custom-light: #8969c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cb0",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 254.545,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42286,
    "c": 0.19423,
    "h": 285.7
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#4C2CB0
secondary
#B1C672
accent
#E345BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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