#7B216D#7B216D

#7B216D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.151 H 334.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7B216D
RGBrgb(123, 33, 109)
HSLhsl(309, 58%, 31%)
HSVhsv(309, 73%, 48%)
CMYKcmyk(0%, 73.2%, 11.4%, 51.8%)
CIE-LABlab(30.41, 47.06, -23.50)
CIE-LCHlch(30.41, 52.60, 333.47°)
OKLaboklab(42% 0.1371 -0.0642)
OKLCHoklch(42% 0.151 334.9)
XYZxyz(11.4727, 6.4038, 15.0969)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B216D #217B2F
analogous
#5C217B #7B216D #7B2140
triadic
#7B216D #6D7B21 #216D7B
tetradic
#7B216D #7B5C21 #217B2F #21407B
square
#7B216D #7B5C21 #217B2F #21407B
split-complementary
#7B216D #407B21 #217B5C
monochromatic
#1A0717 #4B1442 #7B216D #AB2E98 #CE48B9

Accessibility & contrast

On white

9.21
#7B216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B216D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B216D#FFFFFF#000000##FFFFFF
##7B216D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#404C6B
Tritanopia (blue-blind)
#812844
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b216d;
/* rgb */ color: rgb(123, 33, 109);
/* oklch */ color: oklch(42.0% 0.151 334.9);
Tailwind
colors: {
  custom: {
    50: '#a46597',
    500: '#7b216d',
    950: '#000000',
  },
}
SCSS
$custom: #7b216d;
$custom-light: #a46597;
$custom-dark: #000000;
JSON
{
  "hex": "#7b216d",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 309.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42003,
    "c": 0.1514,
    "h": 334.9
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#7B216D
secondary
#4AAE59
accent
#E15F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B216D

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

Preview Lab → · Contrast checker → · Palette generator →

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