#7F2B84#7F2B84

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

Color values

HEX#7F2B84
RGBrgb(127, 43, 132)
HSLhsl(297, 51%, 34%)
HSVhsv(297, 67%, 52%)
CMYKcmyk(3.8%, 67.4%, 0%, 48.2%)
CIE-LABlab(33.79, 48.07, -32.62)
CIE-LCHlch(33.79, 58.09, 325.84°)
OKLaboklab(44.99% 0.1316 -0.0905)
OKLCHoklch(44.99% 0.16 325.5)
XYZxyz(13.7808, 7.9066, 22.6256)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B84 #30842B
analogous
#532B84 #7F2B84 #842B5D
triadic
#7F2B84 #847F2B #2B847F
tetradic
#7F2B84 #84532B #30842B #2B5D84
square
#7F2B84 #84532B #30842B #2B5D84
split-complementary
#7F2B84 #5D842B #2B8453
monochromatic
#260D28 #531C56 #7F2B84 #AB3AB2 #C55FCB

Accessibility & contrast

On white

8.14
#7F2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2B84
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B84#FFFFFF#000000##FFFFFF
##7F2B841.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4987
Deuteranopia (green-blind)
#3D5382
Tritanopia (blue-blind)
#823854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2b84;
/* rgb */ color: rgb(127, 43, 132);
/* oklch */ color: oklch(45.0% 0.160 325.5);
Tailwind
colors: {
  custom: {
    50: '#a76ba8',
    500: '#7f2b84',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b84;
$custom-light: #a76ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b84",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 296.629,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.15971,
    "h": 325.5
  },
  "luminance": 0.07906
}

Semantic roles & 50–950 ramp

primary
#7F2B84
secondary
#5FB15A
accent
#DA4D55
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7F2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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