#7F2A8A#7F2A8A

#7F2A8A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.166 H 322.9°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7F2A8A
RGBrgb(127, 42, 138)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 70%, 54%)
CMYKcmyk(8%, 69.6%, 0%, 45.9%)
CIE-LABlab(33.99, 49.63, -36.01)
CIE-LCHlch(33.99, 61.32, 324.03°)
OKLaboklab(45.25% 0.1328 -0.1004)
OKLCHoklch(45.25% 0.166 322.9)
XYZxyz(14.1674, 8.0037, 24.8385)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A8A #358A2A
analogous
#4F2A8A #7F2A8A #8A2A65
triadic
#7F2A8A #8A7F2A #2A8A7F
tetradic
#7F2A8A #8A4F2A #358A2A #2A658A
square
#7F2A8A #8A4F2A #358A2A #2A658A
split-complementary
#7F2A8A #658A2A #2A8A4F
monochromatic
#290D2C #541C5B #7F2A8A #AA38B9 #C260CF

Accessibility & contrast

On white

8.08
#7F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A8A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A8A#FFFFFF#000000##FFFFFF
##7F2A8A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8D
Deuteranopia (green-blind)
#385388
Tritanopia (blue-blind)
#813A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2a8a;
/* rgb */ color: rgb(127, 42, 138);
/* oklch */ color: oklch(45.2% 0.166 322.9);
Tailwind
colors: {
  custom: {
    50: '#a76bac',
    500: '#7f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a8a;
$custom-light: #a76bac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a8a",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 293.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45245,
    "c": 0.16646,
    "h": 322.9
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#7F2A8A
secondary
#66B45B
accent
#DD4B5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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