#7F207D#7F207D

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

Color values

HEX#7F207D
RGBrgb(127, 32, 125)
HSLhsl(301, 60%, 31%)
HSVhsv(301, 75%, 50%)
CMYKcmyk(0%, 74.8%, 1.6%, 50.2%)
CIE-LABlab(31.87, 51.09, -31.29)
CIE-LCHlch(31.87, 59.92, 328.51°)
OKLaboklab(43.47% 0.1435 -0.0866)
OKLCHoklch(43.47% 0.168 328.9)
XYZxyz(12.9705, 7.0267, 20.0712)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F207D #207F22
analogous
#51207F #7F207D #7F204D
triadic
#7F207D #7D7F20 #207D7F
tetradic
#7F207D #7F5120 #207F22 #204D7F
square
#7F207D #7F5120 #207F22 #204D7F
split-complementary
#7F207D #4D7F20 #207F51
monochromatic
#1D071D #4E144D #7F207D #B02CAD #D148CE

Accessibility & contrast

On white

8.73
#7F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F207D
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F207D#FFFFFF#000000##FFFFFF
##7F207D1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#3B4F7B
Tritanopia (blue-blind)
#832E4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f207d;
/* rgb */ color: rgb(127, 32, 125);
/* oklch */ color: oklch(43.5% 0.168 328.9);
Tailwind
colors: {
  custom: {
    50: '#a766a3',
    500: '#7f207d',
    950: '#000000',
  },
}
SCSS
$custom: #7f207d;
$custom-light: #a766a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f207d",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 301.263,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43474,
    "c": 0.16759,
    "h": 328.9
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

primary
#7F207D
secondary
#49B24B
accent
#E34845
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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