#7F277B#7F277B

#7F277B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.157 H 329.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7F277B
RGBrgb(127, 39, 123)
HSLhsl(303, 53%, 33%)
HSVhsv(303, 69%, 50%)
CMYKcmyk(0%, 69.3%, 3.1%, 50.2%)
CIE-LABlab(32.69, 48.10, -28.74)
CIE-LCHlch(32.69, 56.04, 329.14°)
OKLaboklab(44.03% 0.1359 -0.0792)
OKLCHoklch(44.03% 0.157 329.8)
XYZxyz(13.0530, 7.3941, 19.4748)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F277B #277F2B
analogous
#57277F #7F277B #7F274F
triadic
#7F277B #7B7F27 #277B7F
tetradic
#7F277B #7F5727 #277F2B #274F7F
square
#7F277B #7F5727 #277F2B #274F7F
split-complementary
#7F277B #4F7F27 #277F57
monochromatic
#210A20 #50194E #7F277B #AE35A8 #CB55C6

Accessibility & contrast

On white

8.47
#7F277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F277B
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F277B#FFFFFF#000000##FFFFFF
##7F277B1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#3F5179
Tritanopia (blue-blind)
#84324E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f277b;
/* rgb */ color: rgb(127, 39, 123);
/* oklch */ color: oklch(44.0% 0.157 329.8);
Tailwind
colors: {
  custom: {
    50: '#a769a1',
    500: '#7f277b',
    950: '#000000',
  },
}
SCSS
$custom: #7f277b;
$custom-light: #a769a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f277b",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 302.727,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44027,
    "c": 0.1573,
    "h": 329.8
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#7F277B
secondary
#52B056
accent
#DC524B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #7F277B

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

Preview Lab → · Contrast checker → · Palette generator →

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