#7F2082#7F2082

#7F2082 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.172 H 326.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7F2082
RGBrgb(127, 32, 130)
HSLhsl(298, 60%, 32%)
HSVhsv(298, 75%, 51%)
CMYKcmyk(2.3%, 75.4%, 0%, 49%)
CIE-LABlab(32.16, 51.97, -33.96)
CIE-LCHlch(32.16, 62.08, 326.84°)
OKLaboklab(43.78% 0.1435 -0.0943)
OKLCHoklch(43.78% 0.172 326.7)
XYZxyz(13.2979, 7.1577, 21.7959)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2082 #238220
analogous
#4E2082 #7F2082 #822054
triadic
#7F2082 #827F20 #20827F
tetradic
#7F2082 #824E20 #238220 #205482
square
#7F2082 #824E20 #238220 #205482
split-complementary
#7F2082 #548220 #20824E
monochromatic
#1F0820 #4F1451 #7F2082 #AF2CB3 #CE4AD2

Accessibility & contrast

On white

8.64
#7F2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2082
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2082#FFFFFF#000000##FFFFFF
##7F20821.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064485
Deuteranopia (green-blind)
#385080
Tritanopia (blue-blind)
#83304F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2082;
/* rgb */ color: rgb(127, 32, 130);
/* oklch */ color: oklch(43.8% 0.172 326.7);
Tailwind
colors: {
  custom: {
    50: '#a766a7',
    500: '#7f2082',
    950: '#000000',
  },
}
SCSS
$custom: #7f2082;
$custom-light: #a766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2082",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 298.163,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43781,
    "c": 0.17169,
    "h": 326.7
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#7F2082
secondary
#4CB549
accent
#E44449
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F2082

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

Preview Lab → · Contrast checker → · Palette generator →

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