#7F2B7A#7F2B7A

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

Color values

HEX#7F2B7A
RGBrgb(127, 43, 122)
HSLhsl(304, 49%, 33%)
HSVhsv(304, 66%, 50%)
CMYKcmyk(0%, 66.1%, 3.9%, 50.2%)
CIE-LABlab(33.23, 46.25, -27.25)
CIE-LCHlch(33.23, 53.68, 329.49°)
OKLaboklab(44.41% 0.131 -0.075)
OKLCHoklch(44.41% 0.151 330.2)
XYZxyz(13.1290, 7.6459, 19.1929)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B7A #2B7F30
analogous
#5A2B7F #7F2B7A #7F2B50
triadic
#7F2B7A #7A7F2B #2B7A7F
tetradic
#7F2B7A #7F5A2B #2B7F30 #2B507F
square
#7F2B7A #7F5A2B #2B7F30 #2B507F
split-complementary
#7F2B7A #507F2B #2B7F5A
monochromatic
#240C22 #511C4E #7F2B7A #AD3AA6 #C85CC2

Accessibility & contrast

On white

8.30
#7F2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7F2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B7A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B7A#FFFFFF#000000##FFFFFF
##7F2B7A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#425278
Tritanopia (blue-blind)
#84344E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f2b7a;
/* rgb */ color: rgb(127, 43, 122);
/* oklch */ color: oklch(44.4% 0.151 330.2);
Tailwind
colors: {
  custom: {
    50: '#a76ba1',
    500: '#7f2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b7a;
$custom-light: #a76ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b7a",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 303.571,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44405,
    "c": 0.15094,
    "h": 330.2
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#7F2B7A
secondary
#58AE5D
accent
#D9574F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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