#7F2A7A#7F2A7A

#7F2A7A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.3% C 0.152 H 330.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7F2A7A
RGBrgb(127, 42, 122)
HSLhsl(304, 50%, 33%)
HSVhsv(304, 67%, 50%)
CMYKcmyk(0%, 66.9%, 3.9%, 50.2%)
CIE-LABlab(33.08, 46.68, -27.50)
CIE-LCHlch(33.08, 54.18, 329.50°)
OKLaboklab(44.29% 0.1323 -0.0756)
OKLCHoklch(44.29% 0.152 330.2)
XYZxyz(13.0931, 7.5740, 19.1809)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A7A #2A7F2F
analogous
#592A7F #7F2A7A #7F2A4F
triadic
#7F2A7A #7A7F2A #2A7A7F
tetradic
#7F2A7A #7F592A #2A7F2F #2A4F7F
square
#7F2A7A #7F592A #2A7F2F #2A4F7F
split-complementary
#7F2A7A #4F7F2A #2A7F59
monochromatic
#230C22 #511B4E #7F2A7A #AD39A6 #C95BC2

Accessibility & contrast

On white

8.35
#7F2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7F2A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A7A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A7A#FFFFFF#000000##FFFFFF
##7F2A7A1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#415278
Tritanopia (blue-blind)
#84334E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f2a7a;
/* rgb */ color: rgb(127, 42, 122);
/* oklch */ color: oklch(44.3% 0.152 330.2);
Tailwind
colors: {
  custom: {
    50: '#a76ba1',
    500: '#7f2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a7a;
$custom-light: #a76ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a7a",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 303.529,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.15236,
    "h": 330.2
  },
  "luminance": 0.07573
}

Semantic roles & 50–950 ramp

primary
#7F2A7A
secondary
#57AE5C
accent
#DA564E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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