#7F2A85#7F2A85

#7F2A85 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.162 H 325.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7F2A85
RGBrgb(127, 42, 133)
HSLhsl(296, 52%, 34%)
HSVhsv(296, 68%, 52%)
CMYKcmyk(4.5%, 68.4%, 0%, 47.8%)
CIE-LABlab(33.69, 48.68, -33.39)
CIE-LCHlch(33.69, 59.03, 325.56°)
OKLaboklab(44.94% 0.1328 -0.0927)
OKLCHoklch(44.94% 0.162 325.1)
XYZxyz(13.8137, 7.8623, 22.9757)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A85 #30852A
analogous
#522A85 #7F2A85 #852A5E
triadic
#7F2A85 #857F2A #2A857F
tetradic
#7F2A85 #85522A #30852A #2A5E85
square
#7F2A85 #85522A #30852A #2A5E85
split-complementary
#7F2A85 #5E852A #2A8552
monochromatic
#260D28 #531B56 #7F2A85 #AB39B4 #C55DCC

Accessibility & contrast

On white

8.16
#7F2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7F2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A85
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A85#FFFFFF#000000##FFFFFF
##7F2A851.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2a85;
/* rgb */ color: rgb(127, 42, 133);
/* oklch */ color: oklch(44.9% 0.162 325.1);
Tailwind
colors: {
  custom: {
    50: '#a76ba9',
    500: '#7f2a85',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a85;
$custom-light: #a76ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a85",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 296.044,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44937,
    "c": 0.16196,
    "h": 325.1
  },
  "luminance": 0.07861
}

Semantic roles & 50–950 ramp

primary
#7F2A85
secondary
#5FB259
accent
#DB4C56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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