#7F2A87#7F2A87

#7F2A87 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.164 H 324.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2A87
RGBrgb(127, 42, 135)
HSLhsl(295, 53%, 35%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(5.9%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.81, 49.06, -34.44)
CIE-LCHlch(33.81, 59.94, 324.93°)
OKLaboklab(45.06% 0.1328 -0.0958)
OKLCHoklch(45.06% 0.164 324.2)
XYZxyz(13.9532, 7.9181, 23.7104)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A87 #32872A
analogous
#512A87 #7F2A87 #872A60
triadic
#7F2A87 #877F2A #2A877F
tetradic
#7F2A87 #87512A #32872A #2A6087
square
#7F2A87 #87512A #32872A #2A6087
split-complementary
#7F2A87 #60872A #2A8751
monochromatic
#270D2A #531B58 #7F2A87 #AB39B6 #C45ECD

Accessibility & contrast

On white

8.13
#7F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A87#FFFFFF#000000##FFFFFF
##7F2A871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#3A5385
Tritanopia (blue-blind)
#813955
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2a87;
/* rgb */ color: rgb(127, 42, 135);
/* oklch */ color: oklch(45.1% 0.164 324.2);
Tailwind
colors: {
  custom: {
    50: '#a76baa',
    500: '#7f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a87;
$custom-light: #a76baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a87",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 294.839,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45059,
    "c": 0.16375,
    "h": 324.2
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#7F2A87
secondary
#62B35A
accent
#DC4C58
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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