#7F2E88#7F2E88

#7F2E88 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.159 H 323.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7F2E88
RGBrgb(127, 46, 136)
HSLhsl(294, 49%, 36%)
HSVhsv(294, 66%, 53%)
CMYKcmyk(6.6%, 66.2%, 0%, 46.7%)
CIE-LABlab(34.49, 47.53, -33.99)
CIE-LCHlch(34.49, 58.43, 324.43°)
OKLaboklab(45.57% 0.1281 -0.0945)
OKLCHoklch(45.57% 0.159 323.6)
XYZxyz(14.1729, 8.2444, 24.1326)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2E88 #37882E
analogous
#522E88 #7F2E88 #882E64
triadic
#7F2E88 #887F2E #2E887F
tetradic
#7F2E88 #88522E #37882E #2E6488
square
#7F2E88 #88522E #37882E #2E6488
split-complementary
#7F2E88 #64882E #2E8852
monochromatic
#2A0F2D #541F5A #7F2E88 #AA3DB6 #C165CB

Accessibility & contrast

On white

7.93
#7F2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2E88
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2E88#FFFFFF#000000##FFFFFF
##7F2E881.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#3C5486
Tritanopia (blue-blind)
#813C57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2e88;
/* rgb */ color: rgb(127, 46, 136);
/* oklch */ color: oklch(45.6% 0.159 323.6);
Tailwind
colors: {
  custom: {
    50: '#a76dab',
    500: '#7f2e88',
    950: '#000000',
  },
}
SCSS
$custom: #7f2e88;
$custom-light: #a76dab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2e88",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 294,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45565,
    "c": 0.15918,
    "h": 323.6
  },
  "luminance": 0.08244
}

Semantic roles & 50–950 ramp

primary
#7F2E88
secondary
#68B260
accent
#D94F5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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