#7F2160#7F2160

#7F2160 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.145 H 344.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7F2160
RGBrgb(127, 33, 96)
HSLhsl(320, 59%, 31%)
HSVhsv(320, 74%, 50%)
CMYKcmyk(0%, 74%, 24.4%, 50.2%)
CIE-LABlab(30.51, 46.17, -14.91)
CIE-LCHlch(30.51, 48.52, 342.10°)
OKLaboklab(42.01% 0.1393 -0.0398)
OKLCHoklch(42.01% 0.145 344.1)
XYZxyz(11.4080, 6.4454, 11.7074)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2160 #217F40
analogous
#6F217F #7F2160 #7F2131
triadic
#7F2160 #607F21 #21607F
tetradic
#7F2160 #7F6F21 #217F40 #21317F
square
#7F2160 #7F6F21 #217F40 #21317F
split-complementary
#7F2160 #317F21 #217F6F
monochromatic
#1E0817 #4E143B #7F2160 #B02E85 #D04AA4

Accessibility & contrast

On white

9.18
#7F2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2160
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2160#FFFFFF#000000##FFFFFF
##7F21601.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3E62
Deuteranopia (green-blind)
#484E5E
Tritanopia (blue-blind)
#88203D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f2160;
/* rgb */ color: rgb(127, 33, 96);
/* oklch */ color: oklch(42.0% 0.145 344.1);
Tailwind
colors: {
  custom: {
    50: '#a8658d',
    500: '#7f2160',
    950: '#000000',
  },
}
SCSS
$custom: #7f2160;
$custom-light: #a8658d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2160",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 319.787,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4201,
    "c": 0.14484,
    "h": 344.1
  },
  "luminance": 0.06444
}

Semantic roles & 50–950 ramp

primary
#7F2160
secondary
#4AB26C
accent
#E27946
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F2160

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

Preview Lab → · Contrast checker → · Palette generator →

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