#7F226E#7F226E

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

Color values

HEX#7F226E
RGBrgb(127, 34, 110)
HSLhsl(311, 58%, 32%)
HSVhsv(311, 73%, 50%)
CMYKcmyk(0%, 73.2%, 13.4%, 50.2%)
CIE-LABlab(31.31, 47.89, -22.68)
CIE-LCHlch(31.31, 52.99, 334.66°)
OKLaboklab(42.81% 0.1404 -0.0618)
OKLCHoklch(42.81% 0.153 336.3)
XYZxyz(12.1391, 6.7830, 15.4187)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F226E #227F33
analogous
#62227F #7F226E #7F2240
triadic
#7F226E #6E7F22 #226E7F
tetradic
#7F226E #7F6222 #227F33 #22407F
square
#7F226E #7F6222 #227F33 #22407F
split-complementary
#7F226E #407F22 #227F62
monochromatic
#1E081A #4F1544 #7F226E #AF2F98 #CF4CB7

Accessibility & contrast

On white

8.91
#7F226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F226E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F226E#FFFFFF#000000##FFFFFF
##7F226E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234170
Deuteranopia (green-blind)
#434F6C
Tritanopia (blue-blind)
#862845
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f226e;
/* rgb */ color: rgb(127, 34, 110);
/* oklch */ color: oklch(42.8% 0.153 336.3);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7f226e',
    950: '#000000',
  },
}
SCSS
$custom: #7f226e;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7f226e",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 310.968,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.15342,
    "h": 336.3
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#7F226E
secondary
#4BB25E
accent
#E16347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F226E

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

Preview Lab → · Contrast checker → · Palette generator →

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