#4B217A#4B217A

#4B217A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.143 H 300.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4B217A
RGBrgb(75, 33, 122)
HSLhsl(268, 57%, 30%)
HSVhsv(268, 73%, 48%)
CMYKcmyk(38.5%, 73%, 0%, 52.2%)
CIE-LABlab(23.63, 38.32, -43.06)
CIE-LCHlch(23.63, 57.64, 311.67°)
OKLaboklab(35.87% 0.0736 -0.1227)
OKLCHoklch(35.87% 0.143 300.9)
XYZxyz(6.9575, 3.9887, 18.8119)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217A #507A21
analogous
#21237A #4B217A #77217A
triadic
#4B217A #7A4B21 #217A4B
tetradic
#4B217A #7A2123 #507A21 #217A77
square
#4B217A #7A2123 #507A21 #217A77
split-complementary
#4B217A #7A7721 #237A21
monochromatic
#10071A #2D144A #4B217A #692EAA #8748CD

Accessibility & contrast

On white

11.68
#4B217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B217A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217A#FFFFFF#000000##FFFFFF
##4B217A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#41364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b217a;
/* rgb */ color: rgb(75, 33, 122);
/* oklch */ color: oklch(35.9% 0.143 300.9);
Tailwind
colors: {
  custom: {
    50: '#8260a1',
    500: '#4b217a',
    950: '#000000',
  },
}
SCSS
$custom: #4b217a;
$custom-light: #8260a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217a",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 268.315,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35866,
    "c": 0.14309,
    "h": 300.9
  },
  "luminance": 0.03989
}

Semantic roles & 50–950 ramp

primary
#4B217A
secondary
#7EAD4A
accent
#E14798
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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