#4B216B#4B216B

#4B216B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.125 H 307.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4B216B
RGBrgb(75, 33, 107)
HSLhsl(274, 53%, 27%)
HSVhsv(274, 69%, 42%)
CMYKcmyk(29.9%, 69.2%, 0%, 58%)
CIE-LABlab(22.46, 34.39, -35.32)
CIE-LCHlch(22.46, 49.30, 314.23°)
OKLaboklab(34.66% 0.0756 -0.1)
OKLCHoklch(34.66% 0.125 307.1)
XYZxyz(6.0988, 3.6452, 14.2894)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B216B #416B21
analogous
#26216B #4B216B #6B2166
triadic
#4B216B #6B4B21 #216B4B
tetradic
#4B216B #6B2621 #416B21 #21666B
square
#4B216B #6B2621 #416B21 #21666B
split-complementary
#4B216B #666B21 #216B26
monochromatic
#100717 #2A133C #4B216B #6C2F9A #8C42C5

Accessibility & contrast

On white

12.15
#4B216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B216B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B216B#FFFFFF#000000##FFFFFF
##4B216B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#113669
Tritanopia (blue-blind)
#463143
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b216b;
/* rgb */ color: rgb(75, 33, 107);
/* oklch */ color: oklch(34.7% 0.125 307.1);
Tailwind
colors: {
  custom: {
    50: '#805f96',
    500: '#4b216b',
    950: '#000000',
  },
}
SCSS
$custom: #4b216b;
$custom-light: #805f96;
$custom-dark: #000000;
JSON
{
  "hex": "#4b216b",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 274.054,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.12537,
    "h": 307.1
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#4B216B
secondary
#6E9F49
accent
#DC4C8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4B216B

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

Preview Lab → · Contrast checker → · Palette generator →

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