#7F2A89#7F2A89

#7F2A89 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.166 H 323.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7F2A89
RGBrgb(127, 42, 137)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 69%, 54%)
CMYKcmyk(7.3%, 69.3%, 0%, 46.3%)
CIE-LABlab(33.93, 49.44, -35.49)
CIE-LCHlch(33.93, 60.86, 324.33°)
OKLaboklab(45.18% 0.1328 -0.0988)
OKLCHoklch(45.18% 0.166 323.3)
XYZxyz(14.0953, 7.9749, 24.4589)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A89 #34892A
analogous
#4F2A89 #7F2A89 #892A64
triadic
#7F2A89 #897F2A #2A897F
tetradic
#7F2A89 #894F2A #34892A #2A6489
square
#7F2A89 #894F2A #34892A #2A6489
split-complementary
#7F2A89 #64892A #2A894F
monochromatic
#280D2B #541C5A #7F2A89 #AA38B8 #C25FCE

Accessibility & contrast

On white

8.09
#7F2A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F2A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A89
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A89#FFFFFF#000000##FFFFFF
##7F2A891.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498C
Deuteranopia (green-blind)
#395387
Tritanopia (blue-blind)
#813A56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2a89;
/* rgb */ color: rgb(127, 42, 137);
/* oklch */ color: oklch(45.2% 0.166 323.3);
Tailwind
colors: {
  custom: {
    50: '#a76bac',
    500: '#7f2a89',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a89;
$custom-light: #a76bac;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a89",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 293.684,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.16555,
    "h": 323.3
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#7F2A89
secondary
#64B45B
accent
#DC4B5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A89

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

Preview Lab → · Contrast checker → · Palette generator →

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