#7F2AA4#7F2AA4

#7F2AA4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.191 H 313.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA4
RGBrgb(127, 42, 164)
HSLhsl(282, 59%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.69, 54.87, -49.13)
CIE-LCHlch(35.69, 73.65, 318.16°)
OKLaboklab(47% 0.1307 -0.1388)
OKLCHoklch(47% 0.191 313.3)
XYZxyz(16.2800, 8.8488, 35.9652)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA4 #4FA42A
analogous
#422AA4 #7F2AA4 #A42A8C
triadic
#7F2AA4 #A47F2A #2AA47F
tetradic
#7F2AA4 #A4422A #4FA42A #2A8CA4
square
#7F2AA4 #A4422A #4FA42A #2A8CA4
split-complementary
#7F2AA4 #8CA42A #2AA442
monochromatic
#341143 #591E73 #7F2AA4 #A23ECD #B96EDA

Accessibility & contrast

On white

7.58
#7F2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA4#FFFFFF#000000##FFFFFF
##7F2AA41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1E56A1
Tritanopia (blue-blind)
#7B4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2aa4;
/* rgb */ color: rgb(127, 42, 164);
/* oklch */ color: oklch(47.0% 0.191 313.3);
Tailwind
colors: {
  custom: {
    50: '#a86cc0',
    500: '#7f2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa4;
$custom-light: #a86cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa4",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 281.803,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47002,
    "c": 0.19061,
    "h": 313.3
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#7F2AA4
secondary
#84C169
accent
#E24575
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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