#7D216E#7D216E

#7D216E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.153 H 335.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7D216E
RGBrgb(125, 33, 110)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 74%, 49%)
CMYKcmyk(0%, 73.6%, 12%, 51%)
CIE-LABlab(30.82, 47.74, -23.47)
CIE-LCHlch(30.82, 53.20, 333.82°)
OKLaboklab(42.38% 0.1394 -0.0641)
OKLCHoklch(42.38% 0.153 335.3)
XYZxyz(11.8159, 6.5745, 15.3955)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D216E #217D30
analogous
#5E217D #7D216E #7D2140
triadic
#7D216E #6E7D21 #216E7D
tetradic
#7D216E #7D5E21 #217D30 #21407D
square
#7D216E #7D5E21 #217D30 #21407D
split-complementary
#7D216E #407D21 #217D5E
monochromatic
#1C0719 #4D1443 #7D216E #AD2E99 #CF49B9

Accessibility & contrast

On white

9.07
#7D216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D216E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D216E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D216E#FFFFFF#000000##FFFFFF
##7D216E1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214070
Deuteranopia (green-blind)
#414D6C
Tritanopia (blue-blind)
#832845
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d216e;
/* rgb */ color: rgb(125, 33, 110);
/* oklch */ color: oklch(42.4% 0.153 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66698',
    500: '#7d216e',
    950: '#000000',
  },
}
SCSS
$custom: #7d216e;
$custom-light: #a66698;
$custom-dark: #000000;
JSON
{
  "hex": "#7d216e",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 309.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42384,
    "c": 0.15341,
    "h": 335.3
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#7D216E
secondary
#4AB05B
accent
#E16046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D216E

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

Preview Lab → · Contrast checker → · Palette generator →

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