#7F2A96#7F2A96

#7F2A96 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.177 H 318.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7F2A96
RGBrgb(127, 42, 150)
HSLhsl(287, 56%, 38%)
HSVhsv(287, 72%, 59%)
CMYKcmyk(15.3%, 72%, 0%, 41.2%)
CIE-LABlab(34.74, 51.99, -42.17)
CIE-LCHlch(34.74, 66.94, 320.95°)
OKLaboklab(46.03% 0.1323 -0.1184)
OKLCHoklch(46.03% 0.177 318.2)
XYZxyz(15.0846, 8.3706, 29.6694)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A96 #41962A
analogous
#492A96 #7F2A96 #962A77
triadic
#7F2A96 #967F2A #2A967F
tetradic
#7F2A96 #96492A #41962A #2A7796
square
#7F2A96 #96492A #41962A #2A7796
split-complementary
#7F2A96 #77962A #2A9649
monochromatic
#2E0F36 #571D66 #7F2A96 #A737C6 #BD66D4

Accessibility & contrast

On white

7.85
#7F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A96
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A96#FFFFFF#000000##FFFFFF
##7F2A961.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#2F5494
Tritanopia (blue-blind)
#7E3F5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2a96;
/* rgb */ color: rgb(127, 42, 150);
/* oklch */ color: oklch(46.0% 0.177 318.2);
Tailwind
colors: {
  custom: {
    50: '#a86cb5',
    500: '#7f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a96;
$custom-light: #a86cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a96",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 287.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46026,
    "c": 0.17749,
    "h": 318.2
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#7F2A96
secondary
#74BA61
accent
#E04868
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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