#7F2A95#7F2A95

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

Color values

HEX#7F2A95
RGBrgb(127, 42, 149)
HSLhsl(288, 56%, 37%)
HSVhsv(288, 72%, 58%)
CMYKcmyk(14.8%, 71.8%, 0%, 41.6%)
CIE-LABlab(34.68, 51.79, -41.67)
CIE-LCHlch(34.68, 66.47, 321.18°)
OKLaboklab(45.96% 0.1323 -0.1169)
OKLCHoklch(45.96% 0.177 318.5)
XYZxyz(15.0044, 8.3386, 29.2471)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A95 #40952A
analogous
#4A2A95 #7F2A95 #952A75
triadic
#7F2A95 #957F2A #2A957F
tetradic
#7F2A95 #954A2A #40952A #2A7595
square
#7F2A95 #954A2A #40952A #2A7595
split-complementary
#7F2A95 #75952A #2A954A
monochromatic
#2E0F36 #561D65 #7F2A95 #A837C5 #BD66D4

Accessibility & contrast

On white

7.87
#7F2A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2A95
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A95#FFFFFF#000000##FFFFFF
##7F2A951.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#305493
Tritanopia (blue-blind)
#7F3F5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2a95;
/* rgb */ color: rgb(127, 42, 149);
/* oklch */ color: oklch(46.0% 0.177 318.5);
Tailwind
colors: {
  custom: {
    50: '#a76cb5',
    500: '#7f2a95',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a95;
$custom-light: #a76cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a95",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 287.664,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45959,
    "c": 0.17656,
    "h": 318.5
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#7F2A95
secondary
#73BA61
accent
#DF4867
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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