#4B217F#4B217F

#4B217F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.149 H 299.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4B217F
RGBrgb(75, 33, 127)
HSLhsl(267, 59%, 31%)
HSVhsv(267, 74%, 50%)
CMYKcmyk(40.9%, 74%, 0%, 50.2%)
CIE-LABlab(24.05, 39.66, -45.55)
CIE-LCHlch(24.05, 60.40, 311.05°)
OKLaboklab(36.29% 0.0726 -0.13)
OKLCHoklch(36.29% 0.149 299.2)
XYZxyz(7.2753, 4.1158, 20.4857)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B217F #557F21
analogous
#21267F #4B217F #7A217F
triadic
#4B217F #7F4B21 #217F4B
tetradic
#4B217F #7F2126 #557F21 #217F7A
square
#4B217F #7F2126 #557F21 #217F7A
split-complementary
#4B217F #7F7A21 #267F21
monochromatic
#12081E #2E144E #4B217F #682EB0 #864AD0

Accessibility & contrast

On white

11.52
#4B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B217F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B217F#FFFFFF#000000##FFFFFF
##4B217F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#3F384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b217f;
/* rgb */ color: rgb(75, 33, 127);
/* oklch */ color: oklch(36.3% 0.149 299.2);
Tailwind
colors: {
  custom: {
    50: '#8260a5',
    500: '#4b217f',
    950: '#000000',
  },
}
SCSS
$custom: #4b217f;
$custom-light: #8260a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b217f",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 266.809,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36292,
    "c": 0.14894,
    "h": 299.2
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#4B217F
secondary
#83B24A
accent
#E2469C
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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