#7F2AA5#7F2AA5

#7F2AA5 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.192 H 313.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F2AA5
RGBrgb(127, 42, 165)
HSLhsl(281, 59%, 41%)
HSVhsv(281, 75%, 65%)
CMYKcmyk(23%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.76, 55.08, -49.62)
CIE-LCHlch(35.76, 74.13, 317.99°)
OKLaboklab(47.08% 0.1305 -0.1402)
OKLCHoklch(47.08% 0.192 313)
XYZxyz(16.3707, 8.8851, 36.4426)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA5 #50A52A
analogous
#412AA5 #7F2AA5 #A52A8D
triadic
#7F2AA5 #A57F2A #2AA57F
tetradic
#7F2AA5 #A5412A #50A52A #2A8DA5
square
#7F2AA5 #A5412A #50A52A #2A8DA5
split-complementary
#7F2AA5 #8DA52A #2AA541
monochromatic
#341143 #591E74 #7F2AA5 #A23ECE #B96FDA

Accessibility & contrast

On white

7.56
#7F2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AA5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA5#FFFFFF#000000##FFFFFF
##7F2AA51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1D56A2
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2aa5;
/* rgb */ color: rgb(127, 42, 165);
/* oklch */ color: oklch(47.1% 0.192 313.0);
Tailwind
colors: {
  custom: {
    50: '#a86cc0',
    500: '#7f2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa5;
$custom-light: #a86cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa5",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 281.463,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47075,
    "c": 0.19156,
    "h": 313
  },
  "luminance": 0.08885
}

Semantic roles & 50–950 ramp

primary
#7F2AA5
secondary
#85C169
accent
#E34576
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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