#7F2AA8#7F2AA8

#7F2AA8 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.194 H 312.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA8
RGBrgb(127, 42, 168)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 66%)
CMYKcmyk(24.4%, 75%, 0%, 34.1%)
CIE-LABlab(35.98, 55.72, -51.07)
CIE-LCHlch(35.98, 75.58, 317.49°)
OKLaboklab(47.29% 0.1301 -0.1445)
OKLCHoklch(47.29% 0.194 312)
XYZxyz(16.6469, 8.9956, 37.8976)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA8 #53A82A
analogous
#402AA8 #7F2AA8 #A82A92
triadic
#7F2AA8 #A87F2A #2AA87F
tetradic
#7F2AA8 #A8402A #53A82A #2A92A8
square
#7F2AA8 #A8402A #53A82A #2A92A8
split-complementary
#7F2AA8 #92A82A #2AA840
monochromatic
#351246 #5A1E77 #7F2AA8 #A140CF #B971DB

Accessibility & contrast

On white

7.50
#7F2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA8#FFFFFF#000000##FFFFFF
##7F2AA81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1756A5
Tritanopia (blue-blind)
#7A4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2aa8;
/* rgb */ color: rgb(127, 42, 168);
/* oklch */ color: oklch(47.3% 0.194 312.0);
Tailwind
colors: {
  custom: {
    50: '#a86cc3',
    500: '#7f2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa8;
$custom-light: #a86cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa8",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 280.476,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.1944,
    "h": 312
  },
  "luminance": 0.08995
}

Semantic roles & 50–950 ramp

primary
#7F2AA8
secondary
#88C36B
accent
#E34578
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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