#7F226D#7F226D

#7F226D is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.8% C 0.153 H 336.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7F226D
RGBrgb(127, 34, 109)
HSLhsl(312, 58%, 32%)
HSVhsv(312, 73%, 50%)
CMYKcmyk(0%, 73.2%, 14.2%, 50.2%)
CIE-LABlab(31.26, 47.73, -22.12)
CIE-LCHlch(31.26, 52.61, 335.13°)
OKLaboklab(42.75% 0.1403 -0.0602)
OKLCHoklch(42.75% 0.153 336.8)
XYZxyz(12.0849, 6.7613, 15.1336)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F226D #227F34
analogous
#63227F #7F226D #7F223F
triadic
#7F226D #6D7F22 #226D7F
tetradic
#7F226D #7F6322 #227F34 #223F7F
square
#7F226D #7F6322 #227F34 #223F7F
split-complementary
#7F226D #3F7F22 #227F63
monochromatic
#1E081A #4F1544 #7F226D #AF2F96 #CF4CB6

Accessibility & contrast

On white

8.93
#7F226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F226D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F226D#FFFFFF#000000##FFFFFF
##7F226D1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406F
Deuteranopia (green-blind)
#434F6B
Tritanopia (blue-blind)
#862844
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f226d;
/* rgb */ color: rgb(127, 34, 109);
/* oklch */ color: oklch(42.8% 0.153 336.8);
Tailwind
colors: {
  custom: {
    50: '#a76697',
    500: '#7f226d',
    950: '#000000',
  },
}
SCSS
$custom: #7f226d;
$custom-light: #a76697;
$custom-dark: #000000;
JSON
{
  "hex": "#7f226d",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 311.613,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.15267,
    "h": 336.8
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#7F226D
secondary
#4BB25F
accent
#E16547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F226D

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

Preview Lab → · Contrast checker → · Palette generator →

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