#7B216F#7B216F

#7B216F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.153 H 333.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7B216F
RGBrgb(123, 33, 111)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 73%, 48%)
CMYKcmyk(0%, 73.2%, 9.8%, 51.8%)
CIE-LABlab(30.51, 47.39, -24.61)
CIE-LCHlch(30.51, 53.40, 332.55°)
OKLaboklab(42.11% 0.1373 -0.0674)
OKLCHoklch(42.11% 0.153 333.9)
XYZxyz(11.5816, 6.4473, 15.6703)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B216F #217B2D
analogous
#5A217B #7B216F #7B2142
triadic
#7B216F #6F7B21 #216F7B
tetradic
#7B216F #7B5A21 #217B2D #21427B
square
#7B216F #7B5A21 #217B2D #21427B
split-complementary
#7B216F #427B21 #217B5A
monochromatic
#1A0718 #4B1443 #7B216F #AB2E9B #CE48BC

Accessibility & contrast

On white

9.17
#7B216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B216F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B216F#FFFFFF#000000##FFFFFF
##7B216F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F71
Deuteranopia (green-blind)
#3F4D6D
Tritanopia (blue-blind)
#812945
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b216f;
/* rgb */ color: rgb(123, 33, 111);
/* oklch */ color: oklch(42.1% 0.153 333.9);
Tailwind
colors: {
  custom: {
    50: '#a46598',
    500: '#7b216f',
    950: '#000000',
  },
}
SCSS
$custom: #7b216f;
$custom-light: #a46598;
$custom-dark: #000000;
JSON
{
  "hex": "#7b216f",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 308,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.15296,
    "h": 333.9
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#7B216F
secondary
#4AAE57
accent
#E15B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B216F

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

Preview Lab → · Contrast checker → · Palette generator →

#7B216F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva