#4C2181#4C2181

#4C2181 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.151 H 299.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2181
RGBrgb(76, 33, 129)
HSLhsl(267, 59%, 32%)
HSVhsv(267, 74%, 51%)
CMYKcmyk(41.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(24.35, 40.40, -46.32)
CIE-LCHlch(24.35, 61.46, 311.09°)
OKLaboklab(36.59% 0.0737 -0.1323)
OKLCHoklch(36.59% 0.151 299.1)
XYZxyz(7.4858, 4.2091, 21.1827)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2181 #568121
analogous
#212681 #4C2181 #7C2181
triadic
#4C2181 #814C21 #21814C
tetradic
#4C2181 #812126 #568121 #21817C
square
#4C2181 #812126 #568121 #21817C
split-complementary
#4C2181 #817C21 #268121
monochromatic
#130820 #2F1550 #4C2181 #692DB2 #874BD1

Accessibility & contrast

On white

11.40
#4C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2181
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2181#FFFFFF#000000##FFFFFF
##4C21811.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#3F394F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2181;
/* rgb */ color: rgb(76, 33, 129);
/* oklch */ color: oklch(36.6% 0.151 299.1);
Tailwind
colors: {
  custom: {
    50: '#8360a6',
    500: '#4c2181',
    950: '#000000',
  },
}
SCSS
$custom: #4c2181;
$custom-light: #8360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2181",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 266.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36587,
    "c": 0.15142,
    "h": 299.1
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#4C2181
secondary
#84B44A
accent
#E2459C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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