#4A2170#4A2170

#4A2170 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.131 H 304.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#4A2170
RGBrgb(74, 33, 112)
HSLhsl(271, 54%, 28%)
HSVhsv(271, 71%, 44%)
CMYKcmyk(33.9%, 70.5%, 0%, 56.1%)
CIE-LABlab(22.70, 35.45, -38.18)
CIE-LCHlch(22.70, 52.10, 312.88°)
OKLaboklab(34.92% 0.0736 -0.1084)
OKLCHoklch(34.92% 0.131 304.2)
XYZxyz(6.2919, 3.7134, 15.7114)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2170 #477021
analogous
#222170 #4A2170 #70216E
triadic
#4A2170 #704A21 #21704A
tetradic
#4A2170 #702221 #477021 #216E70
square
#4A2170 #702221 #477021 #216E70
split-complementary
#4A2170 #6E7021 #217022
monochromatic
#100718 #2B1341 #4A2170 #692F9F #8844C8

Accessibility & contrast

On white

12.05
#4A2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2170
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2170#FFFFFF#000000##FFFFFF
##4A21701.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#04366E
Tritanopia (blue-blind)
#433345
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a2170;
/* rgb */ color: rgb(74, 33, 112);
/* oklch */ color: oklch(34.9% 0.131 304.2);
Tailwind
colors: {
  custom: {
    50: '#805f9a',
    500: '#4a2170',
    950: '#000000',
  },
}
SCSS
$custom: #4a2170;
$custom-light: #805f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2170",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 271.139,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34918,
    "c": 0.13104,
    "h": 304.2
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#4A2170
secondary
#75A449
accent
#DE4A91
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A2170

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

Preview Lab → · Contrast checker → · Palette generator →

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