#7F266E#7F266E

#7F266E is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.2% C 0.148 H 336.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7F266E
RGBrgb(127, 38, 110)
HSLhsl(311, 54%, 32%)
HSVhsv(311, 70%, 50%)
CMYKcmyk(0%, 70.1%, 13.4%, 50.2%)
CIE-LABlab(31.86, 46.32, -21.81)
CIE-LCHlch(31.86, 51.20, 334.78°)
OKLaboklab(43.21% 0.1358 -0.0593)
OKLCHoklch(43.21% 0.148 336.4)
XYZxyz(12.2602, 7.0251, 15.4591)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F266E #267F37
analogous
#64267F #7F266E #7F2641
triadic
#7F266E #6E7F26 #266E7F
tetradic
#7F266E #7F6426 #267F37 #26417F
square
#7F266E #7F6426 #267F37 #26417F
split-complementary
#7F266E #417F26 #267F64
monochromatic
#210A1C #501845 #7F266E #AE3497 #CC54B5

Accessibility & contrast

On white

8.73
#7F266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F266E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F266E#FFFFFF#000000##FFFFFF
##7F266E1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284270
Deuteranopia (green-blind)
#45506C
Tritanopia (blue-blind)
#862B46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f266e;
/* rgb */ color: rgb(127, 38, 110);
/* oklch */ color: oklch(43.2% 0.148 336.4);
Tailwind
colors: {
  custom: {
    50: '#a76898',
    500: '#7f266e',
    950: '#000000',
  },
}
SCSS
$custom: #7f266e;
$custom-light: #a76898;
$custom-dark: #000000;
JSON
{
  "hex": "#7f266e",
  "rgb": {
    "r": 127,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 311.461,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4321,
    "c": 0.14818,
    "h": 336.4
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#7F266E
secondary
#51B063
accent
#DD674A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7F266E

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

Preview Lab → · Contrast checker → · Palette generator →

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