#7F208A#7F208A

#7F208A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.178 H 323.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7F208A
RGBrgb(127, 32, 138)
HSLhsl(294, 62%, 33%)
HSVhsv(294, 77%, 54%)
CMYKcmyk(8%, 76.8%, 0%, 45.9%)
CIE-LABlab(32.66, 53.41, -38.14)
CIE-LCHlch(32.66, 65.63, 324.47°)
OKLaboklab(44.29% 0.1431 -0.1065)
OKLCHoklch(44.29% 0.178 323.3)
XYZxyz(13.8559, 7.3809, 24.7347)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F208A #2B8A20
analogous
#4A208A #7F208A #8A2060
triadic
#7F208A #8A7F20 #208A7F
tetradic
#7F208A #8A4A20 #2B8A20 #20608A
square
#7F208A #8A4A20 #2B8A20 #20608A
split-complementary
#7F208A #608A20 #208A4A
monochromatic
#240927 #511458 #7F208A #AD2CBC #C84ED6

Accessibility & contrast

On white

8.48
#7F208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F208A
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F208A#FFFFFF#000000##FFFFFF
##7F208A1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#813454
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f208a;
/* rgb */ color: rgb(127, 32, 138);
/* oklch */ color: oklch(44.3% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#a867ad',
    500: '#7f208a',
    950: '#000000',
  },
}
SCSS
$custom: #7f208a;
$custom-light: #a867ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f208a",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 293.774,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.17839,
    "h": 323.3
  },
  "luminance": 0.0738
}

Semantic roles & 50–950 ramp

primary
#7F208A
secondary
#58B94D
accent
#E54253
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F208A

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

Preview Lab → · Contrast checker → · Palette generator →

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