#7F2AA9#7F2AA9

#7F2AA9 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.195 H 311.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA9
RGBrgb(127, 42, 169)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 66%)
CMYKcmyk(24.9%, 75.1%, 0%, 33.7%)
CIE-LABlab(36.05, 55.93, -51.55)
CIE-LCHlch(36.05, 76.06, 317.33°)
OKLaboklab(47.37% 0.1299 -0.1459)
OKLCHoklch(47.37% 0.195 311.7)
XYZxyz(16.7405, 9.0330, 38.3901)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA9 #54A92A
analogous
#3F2AA9 #7F2AA9 #A92A94
triadic
#7F2AA9 #A97F2A #2AA97F
tetradic
#7F2AA9 #A93F2A #54A92A #2A94A9
square
#7F2AA9 #A93F2A #54A92A #2A94A9
split-complementary
#7F2AA9 #94A92A #2AA93F
monochromatic
#351247 #5A1E78 #7F2AA9 #A041D0 #B972DC

Accessibility & contrast

On white

7.48
#7F2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA9
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA9#FFFFFF#000000##FFFFFF
##7F2AA91.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1556A6
Tritanopia (blue-blind)
#7A4768
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2aa9;
/* rgb */ color: rgb(127, 42, 169);
/* oklch */ color: oklch(47.4% 0.195 311.7);
Tailwind
colors: {
  custom: {
    50: '#a86cc3',
    500: '#7f2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa9;
$custom-light: #a86cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa9",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 280.157,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47367,
    "c": 0.19534,
    "h": 311.7
  },
  "luminance": 0.09033
}

Semantic roles & 50–950 ramp

primary
#7F2AA9
secondary
#89C36C
accent
#E34479
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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