#4C2170#4C2170

#4C2170 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.132 H 305.6°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4C2170
RGBrgb(76, 33, 112)
HSLhsl(273, 54%, 28%)
HSVhsv(273, 71%, 44%)
CMYKcmyk(32.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(22.98, 35.91, -37.71)
CIE-LCHlch(22.98, 52.08, 313.60°)
OKLaboklab(35.18% 0.0766 -0.107)
OKLCHoklch(35.18% 0.132 305.6)
XYZxyz(6.4483, 3.7941, 15.7187)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2170 #457021
analogous
#242170 #4C2170 #70216C
triadic
#4C2170 #704C21 #21704C
tetradic
#4C2170 #702421 #457021 #216C70
square
#4C2170 #702421 #457021 #216C70
split-complementary
#4C2170 #6C7021 #217024
monochromatic
#100718 #2C1341 #4C2170 #6C2F9F #8C44C8

Accessibility & contrast

On white

11.94
#4C2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4C2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2170
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2170#FFFFFF#000000##FFFFFF
##4C21701.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#09376E
Tritanopia (blue-blind)
#463245
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c2170;
/* rgb */ color: rgb(76, 33, 112);
/* oklch */ color: oklch(35.2% 0.132 305.6);
Tailwind
colors: {
  custom: {
    50: '#81609a',
    500: '#4c2170',
    950: '#000000',
  },
}
SCSS
$custom: #4c2170;
$custom-light: #81609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2170",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 272.658,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35178,
    "c": 0.13156,
    "h": 305.6
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#4C2170
secondary
#72A449
accent
#DE4A8D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2170

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

Preview Lab → · Contrast checker → · Palette generator →

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