#4B217B#4B217B

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

Color values

HEX#4B217B
RGBrgb(75, 33, 123)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 73%, 48%)
CMYKcmyk(39%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.72, 38.59, -43.56)
CIE-LCHlch(23.72, 58.19, 311.54°)
OKLaboklab(35.95% 0.0734 -0.1242)
OKLCHoklch(35.95% 0.144 300.6)
XYZxyz(7.0198, 4.0136, 19.1399)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217B #517B21
analogous
#21247B #4B217B #78217B
triadic
#4B217B #7B4B21 #217B4B
tetradic
#4B217B #7B2124 #517B21 #217B78
square
#4B217B #7B2124 #517B21 #217B78
split-complementary
#4B217B #7B7821 #247B21
monochromatic
#10071A #2E144B #4B217B #682EAB #8748CE

Accessibility & contrast

On white

11.65
#4B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B217B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217B#FFFFFF#000000##FFFFFF
##4B217B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#40374B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b217b;
/* rgb */ color: rgb(75, 33, 123);
/* oklch */ color: oklch(35.9% 0.144 300.6);
Tailwind
colors: {
  custom: {
    50: '#8260a2',
    500: '#4b217b',
    950: '#000000',
  },
}
SCSS
$custom: #4b217b;
$custom-light: #8260a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217b",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 268,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3595,
    "c": 0.14425,
    "h": 300.6
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#4B217B
secondary
#7FAE4A
accent
#E14799
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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