#7F285F#7F285F

#7F285F is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.7% C 0.135 H 345.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7F285F
RGBrgb(127, 40, 95)
HSLhsl(322, 52%, 33%)
HSVhsv(322, 69%, 50%)
CMYKcmyk(0%, 68.5%, 25.2%, 50.2%)
CIE-LABlab(31.48, 43.20, -12.78)
CIE-LCHlch(31.48, 45.05, 343.52°)
OKLaboklab(42.71% 0.1304 -0.0339)
OKLCHoklch(42.71% 0.135 345.4)
XYZxyz(11.5772, 6.8570, 11.5381)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F285F #287F48
analogous
#73287F #7F285F #7F2833
triadic
#7F285F #5F7F28 #285F7F
tetradic
#7F285F #7F7328 #287F48 #28337F
square
#7F285F #7F7328 #287F48 #28337F
split-complementary
#7F285F #337F28 #287F73
monochromatic
#220B19 #50193C #7F285F #AE3782 #CA57A0

Accessibility & contrast

On white

8.86
#7F285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F285F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F285F#FFFFFF#000000##FFFFFF
##7F285F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314161
Deuteranopia (green-blind)
#4B4F5D
Tritanopia (blue-blind)
#88273F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f285f;
/* rgb */ color: rgb(127, 40, 95);
/* oklch */ color: oklch(42.7% 0.135 345.4);
Tailwind
colors: {
  custom: {
    50: '#a7698c',
    500: '#7f285f',
    950: '#000000',
  },
}
SCSS
$custom: #7f285f;
$custom-light: #a7698c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f285f",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 322.069,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42705,
    "c": 0.13471,
    "h": 345.4
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#7F285F
secondary
#54AF75
accent
#DC814C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10070C
muted
#7F7A7D

Preview Lab

Preview with #7F285F

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

Preview Lab → · Contrast checker → · Palette generator →

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