#4A217C#4A217C

#4A217C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.145 H 299.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#4A217C
RGBrgb(74, 33, 124)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 73%, 49%)
CMYKcmyk(40.3%, 73.4%, 0%, 51.4%)
CIE-LABlab(23.67, 38.66, -44.28)
CIE-LCHlch(23.67, 58.78, 311.12°)
OKLaboklab(35.91% 0.0717 -0.1264)
OKLCHoklch(35.91% 0.145 299.6)
XYZxyz(7.0051, 3.9987, 19.4676)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217C #537C21
analogous
#21257C #4A217C #77217C
triadic
#4A217C #7C4A21 #217C4A
tetradic
#4A217C #7C2125 #537C21 #217C77
square
#4A217C #7C2125 #537C21 #217C77
split-complementary
#4A217C #7C7721 #257C21
monochromatic
#10071B #2D144C #4A217C #672EAC #8549CF

Accessibility & contrast

On white

11.67
#4A217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4A217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A217C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217C#FFFFFF#000000##FFFFFF
##4A217C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#3E374C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a217c;
/* rgb */ color: rgb(74, 33, 124);
/* oklch */ color: oklch(35.9% 0.145 299.6);
Tailwind
colors: {
  custom: {
    50: '#8160a3',
    500: '#4a217c',
    950: '#000000',
  },
}
SCSS
$custom: #4a217c;
$custom-light: #8160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217c",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 267.033,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35912,
    "c": 0.14527,
    "h": 299.6
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#4A217C
secondary
#81AF4A
accent
#E1479C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217C

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

Preview Lab → · Contrast checker → · Palette generator →

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