#7F226F#7F226F

#7F226F is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.9% C 0.154 H 335.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7F226F
RGBrgb(127, 34, 111)
HSLhsl(310, 58%, 32%)
HSVhsv(310, 73%, 50%)
CMYKcmyk(0%, 73.2%, 12.6%, 50.2%)
CIE-LABlab(31.36, 48.04, -23.24)
CIE-LCHlch(31.36, 53.37, 334.19°)
OKLaboklab(42.86% 0.1406 -0.0634)
OKLCHoklch(42.86% 0.154 335.7)
XYZxyz(12.1938, 6.8049, 15.7071)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F226F #227F32
analogous
#61227F #7F226F #7F2241
triadic
#7F226F #6F7F22 #226F7F
tetradic
#7F226F #7F6122 #227F32 #22417F
square
#7F226F #7F6122 #227F32 #22417F
split-complementary
#7F226F #417F22 #227F61
monochromatic
#1E081B #4F1545 #7F226F #AF2F99 #CF4CB9

Accessibility & contrast

On white

8.90
#7F226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F226F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F226F#FFFFFF#000000##FFFFFF
##7F226F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234171
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#862945
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f226f;
/* rgb */ color: rgb(127, 34, 111);
/* oklch */ color: oklch(42.9% 0.154 335.7);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7f226f',
    950: '#000000',
  },
}
SCSS
$custom: #7f226f;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7f226f",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 310.323,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4286,
    "c": 0.15418,
    "h": 335.7
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#7F226F
secondary
#4BB25D
accent
#E16147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F226F

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

Preview Lab → · Contrast checker → · Palette generator →

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