#4A217F#4A217F

#4A217F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.149 H 298.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4A217F
RGBrgb(74, 33, 127)
HSLhsl(266, 59%, 31%)
HSVhsv(266, 74%, 50%)
CMYKcmyk(41.7%, 74%, 0%, 50.2%)
CIE-LABlab(23.92, 39.47, -45.77)
CIE-LCHlch(23.92, 60.43, 310.77°)
OKLaboklab(36.17% 0.0711 -0.1307)
OKLCHoklch(36.17% 0.149 298.5)
XYZxyz(7.1977, 4.0758, 20.4820)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A217F #567F21
analogous
#21277F #4A217F #79217F
triadic
#4A217F #7F4A21 #217F4A
tetradic
#4A217F #7F2127 #567F21 #217F79
square
#4A217F #7F2127 #567F21 #217F79
split-complementary
#4A217F #7F7921 #277F21
monochromatic
#11081E #2E144E #4A217F #662EB0 #854AD0

Accessibility & contrast

On white

11.57
#4A217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A217F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A217F#FFFFFF#000000##FFFFFF
##4A217F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#3D384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a217f;
/* rgb */ color: rgb(74, 33, 127);
/* oklch */ color: oklch(36.2% 0.149 298.5);
Tailwind
colors: {
  custom: {
    50: '#8260a5',
    500: '#4a217f',
    950: '#000000',
  },
}
SCSS
$custom: #4a217f;
$custom-light: #8260a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a217f",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 266.17,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36171,
    "c": 0.14879,
    "h": 298.5
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#4A217F
secondary
#85B24A
accent
#E2469E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A217F

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

Preview Lab → · Contrast checker → · Palette generator →

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