#4A217D#4A217D

#4A217D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 299.2°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4A217D
RGBrgb(74, 33, 125)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 74%, 49%)
CMYKcmyk(40.8%, 73.6%, 0%, 51%)
CIE-LABlab(23.75, 38.93, -44.78)
CIE-LCHlch(23.75, 59.33, 311.00°)
OKLaboklab(36% 0.0715 -0.1278)
OKLCHoklch(36% 0.146 299.2)
XYZxyz(7.0686, 4.0241, 19.8024)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217D #547D21
analogous
#21267D #4A217D #78217D
triadic
#4A217D #7D4A21 #217D4A
tetradic
#4A217D #7D2126 #547D21 #217D78
square
#4A217D #7D2126 #547D21 #217D78
split-complementary
#4A217D #7D7821 #267D21
monochromatic
#11071C #2D144D #4A217D #672EAD #8549CF

Accessibility & contrast

On white

11.64
#4A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A217D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217D#FFFFFF#000000##FFFFFF
##4A217D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#3E384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a217d;
/* rgb */ color: rgb(74, 33, 125);
/* oklch */ color: oklch(36.0% 0.146 299.2);
Tailwind
colors: {
  custom: {
    50: '#8160a3',
    500: '#4a217d',
    950: '#000000',
  },
}
SCSS
$custom: #4a217d;
$custom-light: #8160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217d",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 266.739,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35998,
    "c": 0.14644,
    "h": 299.2
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#4A217D
secondary
#82B04A
accent
#E1469C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217D

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

Preview Lab → · Contrast checker → · Palette generator →

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