#7F2A86#7F2A86

#7F2A86 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.163 H 324.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2A86
RGBrgb(127, 42, 134)
HSLhsl(295, 52%, 35%)
HSVhsv(295, 69%, 53%)
CMYKcmyk(5.2%, 68.7%, 0%, 47.5%)
CIE-LABlab(33.75, 48.87, -33.92)
CIE-LCHlch(33.75, 59.49, 325.24°)
OKLaboklab(45% 0.1328 -0.0943)
OKLCHoklch(45% 0.163 324.6)
XYZxyz(13.8831, 7.8900, 23.3413)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A86 #31862A
analogous
#512A86 #7F2A86 #862A5F
triadic
#7F2A86 #867F2A #2A867F
tetradic
#7F2A86 #86512A #31862A #2A5F86
square
#7F2A86 #86512A #31862A #2A5F86
split-complementary
#7F2A86 #5F862A #2A8651
monochromatic
#270D29 #531B57 #7F2A86 #AB39B5 #C45ECD

Accessibility & contrast

On white

8.15
#7F2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2A86
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A86#FFFFFF#000000##FFFFFF
##7F2A861.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164989
Deuteranopia (green-blind)
#3B5384
Tritanopia (blue-blind)
#823854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2a86;
/* rgb */ color: rgb(127, 42, 134);
/* oklch */ color: oklch(45.0% 0.163 324.6);
Tailwind
colors: {
  custom: {
    50: '#a76baa',
    500: '#7f2a86',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a86;
$custom-light: #a76baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a86",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 295.435,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44998,
    "c": 0.16286,
    "h": 324.6
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#7F2A86
secondary
#60B25A
accent
#DC4C57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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