#7F208C#7F208C

#7F208C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.180 H 322.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7F208C
RGBrgb(127, 32, 140)
HSLhsl(293, 63%, 34%)
HSVhsv(293, 77%, 55%)
CMYKcmyk(9.3%, 77.1%, 0%, 45.1%)
CIE-LABlab(32.79, 53.78, -39.17)
CIE-LCHlch(32.79, 66.54, 323.93°)
OKLaboklab(44.43% 0.143 -0.1095)
OKLCHoklch(44.43% 0.18 322.5)
XYZxyz(14.0021, 7.4393, 25.5043)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F208C #2D8C20
analogous
#49208C #7F208C #8C2063
triadic
#7F208C #8C7F20 #208C7F
tetradic
#7F208C #8C4920 #2D8C20 #20638C
square
#7F208C #8C4920 #2D8C20 #20638C
split-complementary
#7F208C #638C20 #208C49
monochromatic
#250928 #52155A #7F208C #AC2BBE #C750D7

Accessibility & contrast

On white

8.44
#7F208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7F208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F208C
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F208C#FFFFFF#000000##FFFFFF
##7F208C1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#31518A
Tritanopia (blue-blind)
#813555
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f208c;
/* rgb */ color: rgb(127, 32, 140);
/* oklch */ color: oklch(44.4% 0.180 322.5);
Tailwind
colors: {
  custom: {
    50: '#a867ae',
    500: '#7f208c',
    950: '#000000',
  },
}
SCSS
$custom: #7f208c;
$custom-light: #a867ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f208c",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 292.778,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44425,
    "c": 0.18009,
    "h": 322.5
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

primary
#7F208C
secondary
#5BBA4E
accent
#E64256
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F208C

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

Preview Lab → · Contrast checker → · Palette generator →

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