#4B217D#4B217D

#4B217D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.147 H 299.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4B217D
RGBrgb(75, 33, 125)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 74%, 49%)
CMYKcmyk(40%, 73.6%, 0%, 51%)
CIE-LABlab(23.88, 39.13, -44.56)
CIE-LCHlch(23.88, 59.30, 311.29°)
OKLaboklab(36.12% 0.073 -0.1271)
OKLCHoklch(36.12% 0.147 299.9)
XYZxyz(7.1463, 4.0642, 19.8060)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217D #537D21
analogous
#21257D #4B217D #79217D
triadic
#4B217D #7D4B21 #217D4B
tetradic
#4B217D #7D2125 #537D21 #217D79
square
#4B217D #7D2125 #537D21 #217D79
split-complementary
#4B217D #7D7921 #257D21
monochromatic
#11071C #2E144D #4B217D #682EAD #8649CF

Accessibility & contrast

On white

11.58
#4B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B217D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217D#FFFFFF#000000##FFFFFF
##4B217D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#40384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b217d;
/* rgb */ color: rgb(75, 33, 125);
/* oklch */ color: oklch(36.1% 0.147 299.9);
Tailwind
colors: {
  custom: {
    50: '#8260a3',
    500: '#4b217d',
    950: '#000000',
  },
}
SCSS
$custom: #4b217d;
$custom-light: #8260a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217d",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 267.391,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3612,
    "c": 0.1466,
    "h": 299.9
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#4B217D
secondary
#81B04A
accent
#E1469B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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