#7F2771#7F2771

#7F2771 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.5% C 0.149 H 334.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7F2771
RGBrgb(127, 39, 113)
HSLhsl(310, 53%, 33%)
HSVhsv(310, 69%, 50%)
CMYKcmyk(0%, 69.3%, 11%, 50.2%)
CIE-LABlab(32.16, 46.40, -23.26)
CIE-LCHlch(32.16, 51.90, 333.38°)
OKLaboklab(43.47% 0.135 -0.0635)
OKLCHoklch(43.47% 0.149 334.8)
XYZxyz(12.4587, 7.1564, 16.3447)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2771 #277F35
analogous
#61277F #7F2771 #7F2745
triadic
#7F2771 #717F27 #27717F
tetradic
#7F2771 #7F6127 #277F35 #27457F
square
#7F2771 #7F6127 #277F35 #27457F
split-complementary
#7F2771 #457F27 #277F61
monochromatic
#210A1E #501947 #7F2771 #AE359B #CB55B8

Accessibility & contrast

On white

8.64
#7F2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2771
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2771#FFFFFF#000000##FFFFFF
##7F27711.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#44506F
Tritanopia (blue-blind)
#852D48
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f2771;
/* rgb */ color: rgb(127, 39, 113);
/* oklch */ color: oklch(43.5% 0.149 334.8);
Tailwind
colors: {
  custom: {
    50: '#a7699a',
    500: '#7f2771',
    950: '#000000',
  },
}
SCSS
$custom: #7f2771;
$custom-light: #a7699a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2771",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 309.545,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43474,
    "c": 0.14915,
    "h": 334.8
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#7F2771
secondary
#52B061
accent
#DC624B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7F2771

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

Preview Lab → · Contrast checker → · Palette generator →

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