#7F206C#7F206C

#7F206C is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.5% C 0.154 H 337.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7F206C
RGBrgb(127, 32, 108)
HSLhsl(312, 60%, 31%)
HSVhsv(312, 75%, 50%)
CMYKcmyk(0%, 74.8%, 15%, 50.2%)
CIE-LABlab(30.95, 48.31, -21.97)
CIE-LCHlch(30.95, 53.07, 335.55°)
OKLaboklab(42.51% 0.1424 -0.0597)
OKLCHoklch(42.51% 0.154 337.3)
XYZxyz(11.9759, 6.6289, 14.8332)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F206C #207F33
analogous
#62207F #7F206C #7F203C
triadic
#7F206C #6C7F20 #206C7F
tetradic
#7F206C #7F6220 #207F33 #203C7F
square
#7F206C #7F6220 #207F33 #203C7F
split-complementary
#7F206C #3C7F20 #207F62
monochromatic
#1D0719 #4E1442 #7F206C #B02C96 #D148B6

Accessibility & contrast

On white

9.03
#7F206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F206C
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F206C#FFFFFF#000000##FFFFFF
##7F206C1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#862543
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f206c;
/* rgb */ color: rgb(127, 32, 108);
/* oklch */ color: oklch(42.5% 0.154 337.3);
Tailwind
colors: {
  custom: {
    50: '#a76596',
    500: '#7f206c',
    950: '#000000',
  },
}
SCSS
$custom: #7f206c;
$custom-light: #a76596;
$custom-dark: #000000;
JSON
{
  "hex": "#7f206c",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 312,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42512,
    "c": 0.1544,
    "h": 337.3
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#7F206C
secondary
#49B25E
accent
#E36445
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F206C

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

Preview Lab → · Contrast checker → · Palette generator →

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