#7F2B87#7F2B87

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

Color values

HEX#7F2B87
RGBrgb(127, 43, 135)
HSLhsl(295, 52%, 35%)
HSVhsv(295, 68%, 53%)
CMYKcmyk(5.9%, 68.1%, 0%, 47.1%)
CIE-LABlab(33.96, 48.64, -34.20)
CIE-LCHlch(33.96, 59.46, 324.88°)
OKLaboklab(45.17% 0.1317 -0.0951)
OKLCHoklch(45.17% 0.162 324.2)
XYZxyz(13.9891, 7.9899, 23.7223)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B87 #33872B
analogous
#512B87 #7F2B87 #872B61
triadic
#7F2B87 #877F2B #2B877F
tetradic
#7F2B87 #87512B #33872B #2B6187
square
#7F2B87 #87512B #33872B #2B6187
split-complementary
#7F2B87 #61872B #2B8751
monochromatic
#280D2A #531C59 #7F2B87 #AB3AB5 #C360CC

Accessibility & contrast

On white

8.08
#7F2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B87
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B87#FFFFFF#000000##FFFFFF
##7F2B871.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#813955
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2b87;
/* rgb */ color: rgb(127, 43, 135);
/* oklch */ color: oklch(45.2% 0.162 324.2);
Tailwind
colors: {
  custom: {
    50: '#a76caa',
    500: '#7f2b87',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b87;
$custom-light: #a76caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b87",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 294.783,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.16241,
    "h": 324.2
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#7F2B87
secondary
#63B25B
accent
#DB4D59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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