#7F208E#7F208E

#7F208E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.182 H 321.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7F208E
RGBrgb(127, 32, 142)
HSLhsl(292, 63%, 34%)
HSVhsv(292, 77%, 56%)
CMYKcmyk(10.6%, 77.5%, 0%, 44.3%)
CIE-LABlab(32.92, 54.16, -40.20)
CIE-LCHlch(32.92, 67.44, 323.42°)
OKLaboklab(44.56% 0.1428 -0.1125)
OKLCHoklch(44.56% 0.182 321.8)
XYZxyz(14.1509, 7.4988, 26.2880)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F208E #2F8E20
analogous
#48208E #7F208E #8E2066
triadic
#7F208E #8E7F20 #208E7F
tetradic
#7F208E #8E4820 #2F8E20 #20668E
square
#7F208E #8E4820 #2F8E20 #20668E
split-complementary
#7F208E #668E20 #208E48
monochromatic
#26092A #52155C #7F208E #AC2BC0 #C551D8

Accessibility & contrast

On white

8.40
#7F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7F208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F208E
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F208E#FFFFFF#000000##FFFFFF
##7F208E1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2F518B
Tritanopia (blue-blind)
#803656
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f208e;
/* rgb */ color: rgb(127, 32, 142);
/* oklch */ color: oklch(44.6% 0.182 321.8);
Tailwind
colors: {
  custom: {
    50: '#a867b0',
    500: '#7f208e',
    950: '#000000',
  },
}
SCSS
$custom: #7f208e;
$custom-light: #a867b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f208e",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 291.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44559,
    "c": 0.18179,
    "h": 321.8
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#7F208E
secondary
#5EBB4F
accent
#E64258
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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