#7C216B#7C216B

#7C216B is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.1% C 0.150 H 336.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7C216B
RGBrgb(124, 33, 107)
HSLhsl(311, 58%, 31%)
HSVhsv(311, 73%, 49%)
CMYKcmyk(0%, 73.4%, 13.7%, 51.4%)
CIE-LABlab(30.49, 47.00, -22.09)
CIE-LCHlch(30.49, 51.93, 334.83°)
OKLaboklab(42.06% 0.138 -0.0601)
OKLCHoklch(42.06% 0.151 336.5)
XYZxyz(11.5101, 6.4354, 14.5430)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C216B #217C32
analogous
#5F217C #7C216B #7C213D
triadic
#7C216B #6B7C21 #216B7C
tetradic
#7C216B #7C5F21 #217C32 #213D7C
square
#7C216B #7C5F21 #217C32 #213D7C
split-complementary
#7C216B #3D7C21 #217C5F
monochromatic
#1B0718 #4C1441 #7C216B #AC2E95 #CF49B6

Accessibility & contrast

On white

9.18
#7C216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C216B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C216B#FFFFFF#000000##FFFFFF
##7C216B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233F6D
Deuteranopia (green-blind)
#414D69
Tritanopia (blue-blind)
#832743
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c216b;
/* rgb */ color: rgb(124, 33, 107);
/* oklch */ color: oklch(42.1% 0.150 336.5);
Tailwind
colors: {
  custom: {
    50: '#a56595',
    500: '#7c216b',
    950: '#000000',
  },
}
SCSS
$custom: #7c216b;
$custom-light: #a56595;
$custom-dark: #000000;
JSON
{
  "hex": "#7c216b",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 311.209,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42059,
    "c": 0.1505,
    "h": 336.5
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#7C216B
secondary
#4AAF5D
accent
#E16347
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C216B

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

Preview Lab → · Contrast checker → · Palette generator →

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