#7F286E#7F286E

#7F286E is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.4% C 0.145 H 336.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7F286E
RGBrgb(127, 40, 110)
HSLhsl(312, 52%, 33%)
HSVhsv(312, 69%, 50%)
CMYKcmyk(0%, 68.5%, 13.4%, 50.2%)
CIE-LABlab(32.16, 45.49, -21.35)
CIE-LCHlch(32.16, 50.25, 334.86°)
OKLaboklab(43.43% 0.1333 -0.058)
OKLCHoklch(43.43% 0.145 336.5)
XYZxyz(12.3258, 7.1565, 15.4810)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F286E #287F39
analogous
#64287F #7F286E #7F2842
triadic
#7F286E #6E7F28 #286E7F
tetradic
#7F286E #7F6428 #287F39 #28427F
square
#7F286E #7F6428 #287F39 #28427F
split-complementary
#7F286E #427F28 #287F64
monochromatic
#220B1D #501946 #7F286E #AE3796 #CA57B4

Accessibility & contrast

On white

8.64
#7F286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F286E
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F286E#FFFFFF#000000##FFFFFF
##7F286E1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4370
Deuteranopia (green-blind)
#46506C
Tritanopia (blue-blind)
#862D47
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f286e;
/* rgb */ color: rgb(127, 40, 110);
/* oklch */ color: oklch(43.4% 0.145 336.5);
Tailwind
colors: {
  custom: {
    50: '#a76998',
    500: '#7f286e',
    950: '#000000',
  },
}
SCSS
$custom: #7f286e;
$custom-light: #a76998;
$custom-dark: #000000;
JSON
{
  "hex": "#7f286e",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 311.724,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.14542,
    "h": 336.5
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#7F286E
secondary
#54AF65
accent
#DC684C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7F286E

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

Preview Lab → · Contrast checker → · Palette generator →

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