#4A218C#4A218C

#4A218C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.164 H 294.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#4A218C
RGBrgb(74, 33, 140)
HSLhsl(263, 62%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(47.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.07, 43.03, -52.05)
CIE-LCHlch(25.07, 67.53, 309.58°)
OKLaboklab(37.34% 0.068 -0.1492)
OKLCHoklch(37.34% 0.164 294.5)
XYZxyz(8.1002, 4.4368, 25.2355)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218C #638C21
analogous
#212D8C #4A218C #80218C
triadic
#4A218C #8C4A21 #218C4A
tetradic
#4A218C #8C212D #638C21 #218C80
square
#4A218C #8C212D #638C21 #218C80
split-complementary
#4A218C #8C8021 #2D8C21
monochromatic
#160A29 #30155A #4A218C #642DBE #8451D6

Accessibility & contrast

On white

11.13
#4A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A218C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218C#FFFFFF#000000##FFFFFF
##4A218C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#373E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a218c;
/* rgb */ color: rgb(74, 33, 140);
/* oklch */ color: oklch(37.3% 0.164 294.5);
Tailwind
colors: {
  custom: {
    50: '#8361af',
    500: '#4a218c',
    950: '#000000',
  },
}
SCSS
$custom: #4a218c;
$custom-light: #8361af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218c",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 262.991,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37335,
    "c": 0.16394,
    "h": 294.5
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#4A218C
secondary
#91B94F
accent
#E543A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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