#4C2ABC#4C2ABC

#4C2ABC is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.210 H 284.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4C2ABC
RGBrgb(76, 42, 188)
HSLhsl(254, 63%, 45%)
HSVhsv(254, 78%, 74%)
CMYKcmyk(59.6%, 77.7%, 0%, 26.3%)
CIE-LABlab(31.40, 52.53, -70.71)
CIE-LCHlch(31.40, 88.09, 306.61°)
OKLaboklab(43.22% 0.0508 -0.2038)
OKLCHoklch(43.22% 0.21 284)
XYZxyz(12.8828, 6.8224, 48.2052)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2ABC #9ABC2A
analogous
#2A51BC #4C2ABC #952ABC
triadic
#4C2ABC #BC4C2A #2ABC4C
tetradic
#4C2ABC #BC2A51 #9ABC2A #2ABC95
square
#4C2ABC #BC2A51 #9ABC2A #2ABC95
split-complementary
#4C2ABC #BC952A #51BC2A
monochromatic
#241458 #381F8A #4C2ABC #6D4CD7 #957EE2

Accessibility & contrast

On white

8.88
#4C2ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4C2ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2ABC
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2ABC#FFFFFF#000000##FFFFFF
##4C2ABC1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0045B9
Tritanopia (blue-blind)
#005572
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4c2abc;
/* rgb */ color: rgb(76, 42, 188);
/* oklch */ color: oklch(43.2% 0.210 284.0);
Tailwind
colors: {
  custom: {
    50: '#8b68d1',
    500: '#4c2abc',
    950: '#000000',
  },
}
SCSS
$custom: #4c2abc;
$custom-light: #8b68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2abc",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 253.973,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43218,
    "c": 0.21005,
    "h": 284
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#4C2ABC
secondary
#B7CB77
accent
#E741C0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4C2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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