#4B217C#4B217C

#4B217C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.145 H 300.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4B217C
RGBrgb(75, 33, 124)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(39.5%, 73.4%, 0%, 51.4%)
CIE-LABlab(23.80, 38.86, -44.06)
CIE-LCHlch(23.80, 58.75, 311.41°)
OKLaboklab(36.04% 0.0732 -0.1257)
OKLCHoklch(36.04% 0.145 300.2)
XYZxyz(7.0827, 4.0387, 19.4713)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217C #527C21
analogous
#21247C #4B217C #78217C
triadic
#4B217C #7C4B21 #217C4B
tetradic
#4B217C #7C2124 #527C21 #217C78
square
#4B217C #7C2124 #527C21 #217C78
split-complementary
#4B217C #7C7821 #247C21
monochromatic
#11071B #2E144C #4B217C #682EAC #8749CF

Accessibility & contrast

On white

11.62
#4B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B217C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217C#FFFFFF#000000##FFFFFF
##4B217C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#40374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b217c;
/* rgb */ color: rgb(75, 33, 124);
/* oklch */ color: oklch(36.0% 0.145 300.2);
Tailwind
colors: {
  custom: {
    50: '#8260a3',
    500: '#4b217c',
    950: '#000000',
  },
}
SCSS
$custom: #4b217c;
$custom-light: #8260a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217c",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 267.692,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36035,
    "c": 0.14543,
    "h": 300.2
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#4B217C
secondary
#80AF4A
accent
#E1479A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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