#7F2AA2#7F2AA2

#7F2AA2 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.189 H 313.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA2
RGBrgb(127, 42, 162)
HSLhsl(283, 59%, 40%)
HSVhsv(283, 74%, 64%)
CMYKcmyk(21.6%, 74.1%, 0%, 36.5%)
CIE-LABlab(35.55, 54.45, -48.15)
CIE-LCHlch(35.55, 72.69, 318.51°)
OKLaboklab(46.86% 0.131 -0.1359)
OKLCHoklch(46.86% 0.189 313.9)
XYZxyz(16.1008, 8.7771, 35.0214)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA2 #4DA22A
analogous
#432AA2 #7F2AA2 #A22A89
triadic
#7F2AA2 #A27F2A #2AA27F
tetradic
#7F2AA2 #A2432A #4DA22A #2A89A2
square
#7F2AA2 #A2432A #4DA22A #2A89A2
split-complementary
#7F2AA2 #89A22A #2AA243
monochromatic
#331141 #591D71 #7F2AA2 #A33DCD #BA6DD9

Accessibility & contrast

On white

7.62
#7F2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA2#FFFFFF#000000##FFFFFF
##7F2AA21.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#21569F
Tritanopia (blue-blind)
#7C4464
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2aa2;
/* rgb */ color: rgb(127, 42, 162);
/* oklch */ color: oklch(46.9% 0.189 313.9);
Tailwind
colors: {
  custom: {
    50: '#a86cbe',
    500: '#7f2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa2;
$custom-light: #a86cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa2",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 282.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46859,
    "c": 0.18872,
    "h": 313.9
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#7F2AA2
secondary
#82C068
accent
#E24673
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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