#7F207A#7F207A

#7F207A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.165 H 330.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7F207A
RGBrgb(127, 32, 122)
HSLhsl(303, 60%, 31%)
HSVhsv(303, 75%, 50%)
CMYKcmyk(0%, 74.8%, 3.9%, 50.2%)
CIE-LABlab(31.70, 50.58, -29.68)
CIE-LCHlch(31.70, 58.65, 329.60°)
OKLaboklab(43.3% 0.1435 -0.0819)
OKLCHoklch(43.3% 0.165 330.3)
XYZxyz(12.7817, 6.9512, 19.0771)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F207A #207F25
analogous
#54207F #7F207A #7F204A
triadic
#7F207A #7A7F20 #207A7F
tetradic
#7F207A #7F5420 #207F25 #204A7F
square
#7F207A #7F5420 #207F25 #204A7F
split-complementary
#7F207A #4A7F20 #207F54
monochromatic
#1D071C #4E144B #7F207A #B02CA9 #D148CA

Accessibility & contrast

On white

8.79
#7F207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F207A
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F207A#FFFFFF#000000##FFFFFF
##7F207A1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427C
Deuteranopia (green-blind)
#3D4F78
Tritanopia (blue-blind)
#842C4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f207a;
/* rgb */ color: rgb(127, 32, 122);
/* oklch */ color: oklch(43.3% 0.165 330.3);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7f207a',
    950: '#000000',
  },
}
SCSS
$custom: #7f207a;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f207a",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 303.158,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43295,
    "c": 0.16517,
    "h": 330.3
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#7F207A
secondary
#49B24E
accent
#E34D45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F207A

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

Preview Lab → · Contrast checker → · Palette generator →

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