#4A217B#4A217B

#4A217B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.144 H 299.9°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#4A217B
RGBrgb(74, 33, 123)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 73%, 48%)
CMYKcmyk(39.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.58, 38.38, -43.78)
CIE-LCHlch(23.58, 58.22, 311.24°)
OKLaboklab(35.83% 0.0719 -0.1249)
OKLCHoklch(35.83% 0.144 299.9)
XYZxyz(6.9422, 3.9736, 19.1363)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217B #527B21
analogous
#21257B #4A217B #77217B
triadic
#4A217B #7B4A21 #217B4A
tetradic
#4A217B #7B2125 #527B21 #217B77
square
#4A217B #7B2125 #527B21 #217B77
split-complementary
#4A217B #7B7721 #257B21
monochromatic
#10071A #2D144B #4A217B #672EAB #8548CE

Accessibility & contrast

On white

11.70
#4A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A217B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217B#FFFFFF#000000##FFFFFF
##4A217B1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#3F374B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a217b;
/* rgb */ color: rgb(74, 33, 123);
/* oklch */ color: oklch(35.8% 0.144 299.9);
Tailwind
colors: {
  custom: {
    50: '#8160a2',
    500: '#4a217b',
    950: '#000000',
  },
}
SCSS
$custom: #4a217b;
$custom-light: #8160a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217b",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 267.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35827,
    "c": 0.14408,
    "h": 299.9
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#4A217B
secondary
#80AE4A
accent
#E1479B
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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