#7F255F#7F255F

#7F255F is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.4% C 0.139 H 345.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7F255F
RGBrgb(127, 37, 95)
HSLhsl(321, 55%, 32%)
HSVhsv(321, 71%, 50%)
CMYKcmyk(0%, 70.9%, 25.2%, 50.2%)
CIE-LABlab(31.03, 44.46, -13.47)
CIE-LCHlch(31.03, 46.45, 343.14°)
OKLaboklab(42.37% 0.1342 -0.0358)
OKLCHoklch(42.37% 0.139 345.1)
XYZxyz(11.4800, 6.6626, 11.5057)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F255F #257F45
analogous
#72257F #7F255F #7F2532
triadic
#7F255F #5F7F25 #255F7F
tetradic
#7F255F #7F7225 #257F45 #25327F
square
#7F255F #7F7225 #257F45 #25327F
split-complementary
#7F255F #327F25 #257F72
monochromatic
#200918 #50173C #7F255F #AE3382 #CD52A1

Accessibility & contrast

On white

9.00
#7F255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F255F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F255F#FFFFFF#000000##FFFFFF
##7F255F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3F61
Deuteranopia (green-blind)
#4A4F5D
Tritanopia (blue-blind)
#88243E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f255f;
/* rgb */ color: rgb(127, 37, 95);
/* oklch */ color: oklch(42.4% 0.139 345.1);
Tailwind
colors: {
  custom: {
    50: '#a7678c',
    500: '#7f255f',
    950: '#000000',
  },
}
SCSS
$custom: #7f255f;
$custom-light: #a7678c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f255f",
  "rgb": {
    "r": 127,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 321.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42373,
    "c": 0.13892,
    "h": 345.1
  },
  "luminance": 0.06661
}

Semantic roles & 50–950 ramp

primary
#7F255F
secondary
#4FB172
accent
#DE7E4A
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F255F

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

Preview Lab → · Contrast checker → · Palette generator →

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