#7F2AA3#7F2AA3

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

Color values

HEX#7F2AA3
RGBrgb(127, 42, 163)
HSLhsl(282, 59%, 40%)
HSVhsv(282, 74%, 64%)
CMYKcmyk(22.1%, 74.2%, 0%, 36.1%)
CIE-LABlab(35.62, 54.66, -48.64)
CIE-LCHlch(35.62, 73.17, 318.34°)
OKLaboklab(46.93% 0.1308 -0.1373)
OKLCHoklch(46.93% 0.19 313.6)
XYZxyz(16.1901, 8.8128, 35.4914)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AA3 #4EA32A
analogous
#432AA3 #7F2AA3 #A32A8A
triadic
#7F2AA3 #A37F2A #2AA37F
tetradic
#7F2AA3 #A3432A #4EA32A #2A8AA3
square
#7F2AA3 #A3432A #4EA32A #2A8AA3
split-complementary
#7F2AA3 #8AA32A #2AA343
monochromatic
#331142 #591D72 #7F2AA3 #A23DCD #BA6EDA

Accessibility & contrast

On white

7.60
#7F2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2AA3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AA3#FFFFFF#000000##FFFFFF
##7F2AA31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#2056A0
Tritanopia (blue-blind)
#7B4564
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2aa3;
/* rgb */ color: rgb(127, 42, 163);
/* oklch */ color: oklch(46.9% 0.190 313.6);
Tailwind
colors: {
  custom: {
    50: '#a86cbf',
    500: '#7f2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aa3;
$custom-light: #a86cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aa3",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 282.149,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4693,
    "c": 0.18967,
    "h": 313.6
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#7F2AA3
secondary
#83C068
accent
#E24674
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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