#4B217E#4B217E

#4B217E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.148 H 299.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4B217E
RGBrgb(75, 33, 126)
HSLhsl(267, 58%, 31%)
HSVhsv(267, 74%, 49%)
CMYKcmyk(40.5%, 73.8%, 0%, 50.6%)
CIE-LABlab(23.97, 39.40, -45.05)
CIE-LCHlch(23.97, 59.85, 311.17°)
OKLaboklab(36.21% 0.0728 -0.1286)
OKLCHoklch(36.21% 0.148 299.5)
XYZxyz(7.2105, 4.0898, 20.1442)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217E #547E21
analogous
#21257E #4B217E #79217E
triadic
#4B217E #7E4B21 #217E4B
tetradic
#4B217E #7E2125 #547E21 #217E79
square
#4B217E #7E2125 #547E21 #217E79
split-complementary
#4B217E #7E7921 #257E21
monochromatic
#11081D #2E144E #4B217E #682EAE #864AD0

Accessibility & contrast

On white

11.55
#4B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B217E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217E#FFFFFF#000000##FFFFFF
##4B217E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#3F384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b217e;
/* rgb */ color: rgb(75, 33, 126);
/* oklch */ color: oklch(36.2% 0.148 299.5);
Tailwind
colors: {
  custom: {
    50: '#8260a4',
    500: '#4b217e',
    950: '#000000',
  },
}
SCSS
$custom: #4b217e;
$custom-light: #8260a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217e",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 267.097,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36206,
    "c": 0.14777,
    "h": 299.5
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#4B217E
secondary
#82B14A
accent
#E2469B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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