#4A217A#4A217A

#4A217A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.143 H 300.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4A217A
RGBrgb(74, 33, 122)
HSLhsl(268, 57%, 30%)
HSVhsv(268, 73%, 48%)
CMYKcmyk(39.3%, 73%, 0%, 52.2%)
CIE-LABlab(23.50, 38.12, -43.28)
CIE-LCHlch(23.50, 57.67, 311.37°)
OKLaboklab(35.74% 0.072 -0.1234)
OKLCHoklch(35.74% 0.143 300.3)
XYZxyz(6.8799, 3.9486, 18.8083)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217A #517A21
analogous
#21257A #4A217A #76217A
triadic
#4A217A #7A4A21 #217A4A
tetradic
#4A217A #7A2125 #517A21 #217A76
square
#4A217A #7A2125 #517A21 #217A76
split-complementary
#4A217A #7A7621 #257A21
monochromatic
#10071A #2D144A #4A217A #672EAA #8548CD

Accessibility & contrast

On white

11.73
#4A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A217A
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217A#FFFFFF#000000##FFFFFF
##4A217A1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#3F364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a217a;
/* rgb */ color: rgb(74, 33, 122);
/* oklch */ color: oklch(35.7% 0.143 300.3);
Tailwind
colors: {
  custom: {
    50: '#8160a1',
    500: '#4a217a',
    950: '#000000',
  },
}
SCSS
$custom: #4a217a;
$custom-light: #8160a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217a",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 267.64,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.14291,
    "h": 300.3
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#4A217A
secondary
#7FAD4A
accent
#E1479A
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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