#7B216E#7B216E

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

Color values

HEX#7B216E
RGBrgb(123, 33, 110)
HSLhsl(309, 58%, 31%)
HSVhsv(309, 73%, 48%)
CMYKcmyk(0%, 73.2%, 10.6%, 51.8%)
CIE-LABlab(30.46, 47.23, -24.06)
CIE-LCHlch(30.46, 53.00, 333.01°)
OKLaboklab(42.06% 0.1372 -0.0658)
OKLCHoklch(42.06% 0.152 334.4)
XYZxyz(11.5268, 6.4254, 15.3820)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B216E #217B2E
analogous
#5B217B #7B216E #7B2141
triadic
#7B216E #6E7B21 #216E7B
tetradic
#7B216E #7B5B21 #217B2E #21417B
square
#7B216E #7B5B21 #217B2E #21417B
split-complementary
#7B216E #417B21 #217B5B
monochromatic
#1A0718 #4B1443 #7B216E #AB2E99 #CE48BB

Accessibility & contrast

On white

9.19
#7B216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B216E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B216E#FFFFFF#000000##FFFFFF
##7B216E1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203F70
Deuteranopia (green-blind)
#3F4C6C
Tritanopia (blue-blind)
#812845
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b216e;
/* rgb */ color: rgb(123, 33, 110);
/* oklch */ color: oklch(42.1% 0.152 334.4);
Tailwind
colors: {
  custom: {
    50: '#a46598',
    500: '#7b216e',
    950: '#000000',
  },
}
SCSS
$custom: #7b216e;
$custom-light: #a46598;
$custom-dark: #000000;
JSON
{
  "hex": "#7b216e",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 308.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42058,
    "c": 0.15217,
    "h": 334.4
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#7B216E
secondary
#4AAE58
accent
#E15D47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B216E

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

Preview Lab → · Contrast checker → · Palette generator →

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