#7F126B#7F126B

#7F126B is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.4% C 0.168 H 337.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7F126B
RGBrgb(127, 18, 107)
HSLhsl(311, 75%, 28%)
HSVhsv(311, 86%, 50%)
CMYKcmyk(0%, 85.8%, 15.7%, 50.2%)
CIE-LABlab(29.43, 52.35, -23.70)
CIE-LCHlch(29.43, 57.47, 335.65°)
OKLaboklab(41.4% 0.1549 -0.0645)
OKLCHoklch(41.4% 0.168 337.4)
XYZxyz(11.6228, 6.0073, 14.4545)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126B #127F26
analogous
#5C127F #7F126B #7F1234
triadic
#7F126B #6B7F12 #126B7F
tetradic
#7F126B #7F5C12 #127F26 #12347F
square
#7F126B #7F5C12 #127F26 #12347F
split-complementary
#7F126B #347F12 #127F5C
monochromatic
#1B0417 #490A3E #7F126B #B51A98 #E12BBF

Accessibility & contrast

On white

9.54
#7F126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7F126B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F126B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126B#FFFFFF#000000##FFFFFF
##7F126B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#3F4B69
Tritanopia (blue-blind)
#861B3F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f126b;
/* rgb */ color: rgb(127, 18, 107);
/* oklch */ color: oklch(41.4% 0.168 337.4);
Tailwind
colors: {
  custom: {
    50: '#a86095',
    500: '#7f126b',
    950: '#000000',
  },
}
SCSS
$custom: #7f126b;
$custom-light: #a86095;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126b",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 311.009,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41405,
    "c": 0.16778,
    "h": 337.4
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#7F126B
secondary
#38B54F
accent
#F25836
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F126B

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

Preview Lab → · Contrast checker → · Palette generator →

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