#4A218E#4A218E

#4A218E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.166 H 293.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4A218E
RGBrgb(74, 33, 142)
HSLhsl(263, 62%, 34%)
HSVhsv(263, 77%, 56%)
CMYKcmyk(47.9%, 76.8%, 0%, 44.3%)
CIE-LABlab(25.25, 43.58, -52.99)
CIE-LCHlch(25.25, 68.61, 309.43°)
OKLaboklab(37.52% 0.0675 -0.1519)
OKLCHoklch(37.52% 0.166 293.9)
XYZxyz(8.2490, 4.4963, 26.0192)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218E #658E21
analogous
#212E8E #4A218E #81218E
triadic
#4A218E #8E4A21 #218E4A
tetradic
#4A218E #8E212E #658E21 #218E81
square
#4A218E #8E212E #658E21 #218E81
split-complementary
#4A218E #8E8121 #2E8E21
monochromatic
#160A2B #30155C #4A218E #642DC0 #8452D7

Accessibility & contrast

On white

11.06
#4A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4A218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A218E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218E#FFFFFF#000000##FFFFFF
##4A218E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#363E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a218e;
/* rgb */ color: rgb(74, 33, 142);
/* oklch */ color: oklch(37.5% 0.166 293.9);
Tailwind
colors: {
  custom: {
    50: '#8461b0',
    500: '#4a218e',
    950: '#000000',
  },
}
SCSS
$custom: #4a218e;
$custom-light: #8461b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218e",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 262.569,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37519,
    "c": 0.16625,
    "h": 293.9
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#4A218E
secondary
#93BA50
accent
#E542A8
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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