#7F2D86#7F2D86

#7F2D86 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.3% C 0.159 H 324.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7F2D86
RGBrgb(127, 45, 134)
HSLhsl(295, 50%, 35%)
HSVhsv(295, 66%, 53%)
CMYKcmyk(5.2%, 66.4%, 0%, 47.5%)
CIE-LABlab(34.21, 47.58, -33.19)
CIE-LCHlch(34.21, 58.01, 325.11°)
OKLaboklab(45.33% 0.1293 -0.0922)
OKLCHoklch(45.33% 0.159 324.5)
XYZxyz(13.9935, 8.1109, 23.3781)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D86 #34862D
analogous
#532D86 #7F2D86 #862D60
triadic
#7F2D86 #867F2D #2D867F
tetradic
#7F2D86 #86532D #34862D #2D6086
square
#7F2D86 #86532D #34862D #2D6086
split-complementary
#7F2D86 #60862D #2D8653
monochromatic
#280E2A #541E58 #7F2D86 #AA3CB4 #C263CB

Accessibility & contrast

On white

8.01
#7F2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7F2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D86
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D86#FFFFFF#000000##FFFFFF
##7F2D861.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A89
Deuteranopia (green-blind)
#3D5484
Tritanopia (blue-blind)
#823A55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2d86;
/* rgb */ color: rgb(127, 45, 134);
/* oklch */ color: oklch(45.3% 0.159 324.5);
Tailwind
colors: {
  custom: {
    50: '#a76da9',
    500: '#7f2d86',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d86;
$custom-light: #a76da9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d86",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 295.281,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45329,
    "c": 0.15874,
    "h": 324.5
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#7F2D86
secondary
#64B15E
accent
#D94F59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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