#4B218C#4B218C

#4B218C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.164 H 295.1°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4B218C
RGBrgb(75, 33, 140)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(46.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.19, 43.20, -51.84)
CIE-LCHlch(25.19, 67.48, 309.80°)
OKLaboklab(37.45% 0.0695 -0.1485)
OKLCHoklch(37.45% 0.164 295.1)
XYZxyz(8.1779, 4.4768, 25.2391)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B218C #628C21
analogous
#212D8C #4B218C #81218C
triadic
#4B218C #8C4B21 #218C4B
tetradic
#4B218C #8C212D #628C21 #218C81
square
#4B218C #8C212D #628C21 #218C81
split-complementary
#4B218C #8C8121 #2D8C21
monochromatic
#160A29 #30155A #4B218C #662DBE #8551D6

Accessibility & contrast

On white

11.08
#4B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B218C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B218C#FFFFFF#000000##FFFFFF
##4B218C1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#393D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b218c;
/* rgb */ color: rgb(75, 33, 140);
/* oklch */ color: oklch(37.4% 0.164 295.1);
Tailwind
colors: {
  custom: {
    50: '#8461af',
    500: '#4b218c',
    950: '#000000',
  },
}
SCSS
$custom: #4b218c;
$custom-light: #8461af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b218c",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 263.551,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37449,
    "c": 0.16401,
    "h": 295.1
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#4B218C
secondary
#90B94F
accent
#E543A5
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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