#7F208B#7F208B

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

Color values

HEX#7F208B
RGBrgb(127, 32, 139)
HSLhsl(293, 63%, 34%)
HSVhsv(293, 77%, 55%)
CMYKcmyk(8.6%, 77%, 0%, 45.5%)
CIE-LABlab(32.72, 53.60, -38.66)
CIE-LCHlch(32.72, 66.08, 324.20°)
OKLaboklab(44.36% 0.143 -0.108)
OKLCHoklch(44.36% 0.179 322.9)
XYZxyz(13.9287, 7.4100, 25.1177)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F208B #2C8B20
analogous
#49208B #7F208B #8B2061
triadic
#7F208B #8B7F20 #208B7F
tetradic
#7F208B #8B4920 #2C8B20 #20618B
square
#7F208B #8B4920 #2C8B20 #20618B
split-complementary
#7F208B #618B20 #208B49
monochromatic
#240928 #521559 #7F208B #AC2BBD #C74FD6

Accessibility & contrast

On white

8.46
#7F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F208B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F208B#FFFFFF#000000##FFFFFF
##7F208B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f208b;
/* rgb */ color: rgb(127, 32, 139);
/* oklch */ color: oklch(44.4% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#a867ad',
    500: '#7f208b',
    950: '#000000',
  },
}
SCSS
$custom: #7f208b;
$custom-light: #a867ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f208b",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 293.271,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.17923,
    "h": 322.9
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#7F208B
secondary
#59BA4D
accent
#E64254
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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