#7F286F#7F286F

#7F286F is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.5% C 0.146 H 335.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7F286F
RGBrgb(127, 40, 111)
HSLhsl(311, 52%, 33%)
HSVhsv(311, 69%, 50%)
CMYKcmyk(0%, 68.5%, 12.6%, 50.2%)
CIE-LABlab(32.21, 45.66, -21.91)
CIE-LCHlch(32.21, 50.64, 334.36°)
OKLaboklab(43.48% 0.1335 -0.0596)
OKLCHoklch(43.48% 0.146 335.9)
XYZxyz(12.3806, 7.1784, 15.7694)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F286F #287F38
analogous
#63287F #7F286F #7F2844
triadic
#7F286F #6F7F28 #286F7F
tetradic
#7F286F #7F6328 #287F38 #28447F
square
#7F286F #7F6328 #287F38 #28447F
split-complementary
#7F286F #447F28 #287F63
monochromatic
#220B1E #501946 #7F286F #AE3798 #CA57B5

Accessibility & contrast

On white

8.62
#7F286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7F286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F286F
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F286F#FFFFFF#000000##FFFFFF
##7F286F1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294371
Deuteranopia (green-blind)
#45516D
Tritanopia (blue-blind)
#852D48
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f286f;
/* rgb */ color: rgb(127, 40, 111);
/* oklch */ color: oklch(43.5% 0.146 335.9);
Tailwind
colors: {
  custom: {
    50: '#a76998',
    500: '#7f286f',
    950: '#000000',
  },
}
SCSS
$custom: #7f286f;
$custom-light: #a76998;
$custom-dark: #000000;
JSON
{
  "hex": "#7f286f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 311.034,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43477,
    "c": 0.14619,
    "h": 335.9
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#7F286F
secondary
#54AF64
accent
#DC674C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7F286F

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

Preview Lab → · Contrast checker → · Palette generator →

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