#7F2A82#7F2A82

#7F2A82 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.159 H 326.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2A82
RGBrgb(127, 42, 130)
HSLhsl(298, 51%, 34%)
HSVhsv(298, 68%, 51%)
CMYKcmyk(2.3%, 67.7%, 0%, 49%)
CIE-LABlab(33.52, 48.12, -31.80)
CIE-LCHlch(33.52, 57.68, 326.54°)
OKLaboklab(44.76% 0.1327 -0.0881)
OKLCHoklch(44.76% 0.159 326.4)
XYZxyz(13.6094, 7.7805, 21.8997)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A82 #2D822A
analogous
#532A82 #7F2A82 #822A59
triadic
#7F2A82 #827F2A #2A827F
tetradic
#7F2A82 #82532A #2D822A #2A5982
square
#7F2A82 #82532A #2D822A #2A5982
split-complementary
#7F2A82 #59822A #2A8253
monochromatic
#250C25 #521B54 #7F2A82 #AC39B0 #C75CCA

Accessibility & contrast

On white

8.22
#7F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7F2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A82
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A82#FFFFFF#000000##FFFFFF
##7F2A821.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4885
Deuteranopia (green-blind)
#3D5380
Tritanopia (blue-blind)
#823752
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2a82;
/* rgb */ color: rgb(127, 42, 130);
/* oklch */ color: oklch(44.8% 0.159 326.4);
Tailwind
colors: {
  custom: {
    50: '#a76ba7',
    500: '#7f2a82',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a82;
$custom-light: #a76ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a82",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 297.955,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44756,
    "c": 0.1593,
    "h": 326.4
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#7F2A82
secondary
#5BB058
accent
#DB4D52
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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