#4A216F#4A216F

#4A216F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.130 H 304.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4A216F
RGBrgb(74, 33, 111)
HSLhsl(272, 54%, 28%)
HSVhsv(272, 70%, 44%)
CMYKcmyk(33.3%, 70.3%, 0%, 56.5%)
CIE-LABlab(22.62, 35.19, -37.66)
CIE-LCHlch(22.62, 51.54, 313.06°)
OKLaboklab(34.84% 0.0737 -0.1069)
OKLCHoklch(34.84% 0.13 304.6)
XYZxyz(6.2365, 3.6913, 15.4198)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A216F #466F21
analogous
#23216F #4A216F #6F216D
triadic
#4A216F #6F4A21 #216F4A
tetradic
#4A216F #6F2321 #466F21 #216D6F
square
#4A216F #6F2321 #466F21 #216D6F
split-complementary
#4A216F #6D6F21 #216F23
monochromatic
#100718 #2B1340 #4A216F #692F9E #8943C7

Accessibility & contrast

On white

12.08
#4A216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A216F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A216F#FFFFFF#000000##FFFFFF
##4A216F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#07366D
Tritanopia (blue-blind)
#433245
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a216f;
/* rgb */ color: rgb(74, 33, 111);
/* oklch */ color: oklch(34.8% 0.130 304.6);
Tailwind
colors: {
  custom: {
    50: '#805f99',
    500: '#4a216f',
    950: '#000000',
  },
}
SCSS
$custom: #4a216f;
$custom-light: #805f99;
$custom-dark: #000000;
JSON
{
  "hex": "#4a216f",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 271.538,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.12985,
    "h": 304.6
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#4A216F
secondary
#74A349
accent
#DE4A90
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4A216F

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

Preview Lab → · Contrast checker → · Palette generator →

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