#4C2180#4C2180

#4C2180 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.150 H 299.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2180
RGBrgb(76, 33, 128)
HSLhsl(267, 59%, 32%)
HSVhsv(267, 74%, 50%)
CMYKcmyk(40.6%, 74.2%, 0%, 49.8%)
CIE-LABlab(24.27, 40.13, -45.82)
CIE-LCHlch(24.27, 60.91, 311.21°)
OKLaboklab(36.5% 0.0739 -0.1308)
OKLCHoklch(36.5% 0.15 299.5)
XYZxyz(7.4197, 4.1826, 20.8343)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2180 #558021
analogous
#212680 #4C2180 #7C2180
triadic
#4C2180 #804C21 #21804C
tetradic
#4C2180 #802126 #558021 #21807C
square
#4C2180 #802126 #558021 #21807C
split-complementary
#4C2180 #807C21 #268021
monochromatic
#12081F #2F144F #4C2180 #692EB1 #874BD1

Accessibility & contrast

On white

11.43
#4C2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2180
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2180#FFFFFF#000000##FFFFFF
##4C21801.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#40394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c2180;
/* rgb */ color: rgb(76, 33, 128);
/* oklch */ color: oklch(36.5% 0.150 299.5);
Tailwind
colors: {
  custom: {
    50: '#8360a6',
    500: '#4c2180',
    950: '#000000',
  },
}
SCSS
$custom: #4c2180;
$custom-light: #8360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2180",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 267.158,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.365,
    "c": 0.15025,
    "h": 299.5
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#4C2180
secondary
#83B34A
accent
#E2469B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C2180

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

Preview Lab → · Contrast checker → · Palette generator →

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