#7F2A88#7F2A88

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

Color values

HEX#7F2A88
RGBrgb(127, 42, 136)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 69%, 53%)
CMYKcmyk(6.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(33.87, 49.25, -34.97)
CIE-LCHlch(33.87, 60.40, 324.62°)
OKLaboklab(45.12% 0.1328 -0.0973)
OKLCHoklch(45.12% 0.165 323.8)
XYZxyz(14.0239, 7.9463, 24.0829)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A88 #33882A
analogous
#502A88 #7F2A88 #882A62
triadic
#7F2A88 #887F2A #2A887F
tetradic
#7F2A88 #88502A #33882A #2A6288
square
#7F2A88 #88502A #33882A #2A6288
split-complementary
#7F2A88 #62882A #2A8850
monochromatic
#280D2A #531C59 #7F2A88 #AB38B7 #C35FCE

Accessibility & contrast

On white

8.11
#7F2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2A88
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A88#FFFFFF#000000##FFFFFF
##7F2A881.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498B
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#813955
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2a88;
/* rgb */ color: rgb(127, 42, 136);
/* oklch */ color: oklch(45.1% 0.165 323.8);
Tailwind
colors: {
  custom: {
    50: '#a76bab',
    500: '#7f2a88',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a88;
$custom-light: #a76bab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a88",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 294.255,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.16465,
    "h": 323.8
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#7F2A88
secondary
#63B35B
accent
#DC4C59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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