#7F207E#7F207E

#7F207E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.168 H 328.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7F207E
RGBrgb(127, 32, 126)
HSLhsl(301, 60%, 31%)
HSVhsv(301, 75%, 50%)
CMYKcmyk(0%, 74.8%, 0.8%, 50.2%)
CIE-LABlab(31.93, 51.27, -31.83)
CIE-LCHlch(31.93, 60.34, 328.17°)
OKLaboklab(43.53% 0.1435 -0.0881)
OKLCHoklch(43.53% 0.168 328.5)
XYZxyz(13.0347, 7.0524, 20.4093)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F207E #207F21
analogous
#50207F #7F207E #7F204E
triadic
#7F207E #7E7F20 #207E7F
tetradic
#7F207E #7F5020 #207F21 #204E7F
square
#7F207E #7F5020 #207F21 #204E7F
split-complementary
#7F207E #4E7F20 #207F50
monochromatic
#1D071D #4E144D #7F207E #B02CAE #D148D0

Accessibility & contrast

On white

8.71
#7F207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F207E
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F207E#FFFFFF#000000##FFFFFF
##7F207E1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4381
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#832E4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f207e;
/* rgb */ color: rgb(127, 32, 126);
/* oklch */ color: oklch(43.5% 0.168 328.5);
Tailwind
colors: {
  custom: {
    50: '#a766a4',
    500: '#7f207e',
    950: '#000000',
  },
}
SCSS
$custom: #7f207e;
$custom-light: #a766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f207e",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 300.632,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43534,
    "c": 0.16841,
    "h": 328.5
  },
  "luminance": 0.07051
}

Semantic roles & 50–950 ramp

primary
#7F207E
secondary
#49B24A
accent
#E34745
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F207E

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

Preview Lab → · Contrast checker → · Palette generator →

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