#7F127A#7F127A

#7F127A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.179 H 330.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7F127A
RGBrgb(127, 18, 122)
HSLhsl(303, 75%, 28%)
HSVhsv(303, 86%, 50%)
CMYKcmyk(0%, 85.8%, 3.9%, 50.2%)
CIE-LABlab(30.28, 54.66, -31.92)
CIE-LCHlch(30.28, 63.30, 329.71°)
OKLaboklab(42.29% 0.1552 -0.0883)
OKLCHoklch(42.29% 0.179 330.4)
XYZxyz(12.4815, 6.3508, 18.9770)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F127A #127F17
analogous
#4D127F #7F127A #7F1243
triadic
#7F127A #7A7F12 #127A7F
tetradic
#7F127A #7F4D12 #127F17 #12437F
square
#7F127A #7F4D12 #127F17 #12437F
split-complementary
#7F127A #437F12 #127F4D
monochromatic
#1B041A #490A47 #7F127A #B51AAD #E12BD9

Accessibility & contrast

On white

9.25
#7F127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F127A
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F127A#FFFFFF#000000##FFFFFF
##7F127A1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#842448
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f127a;
/* rgb */ color: rgb(127, 18, 122);
/* oklch */ color: oklch(42.3% 0.179 330.4);
Tailwind
colors: {
  custom: {
    50: '#a861a1',
    500: '#7f127a',
    950: '#000000',
  },
}
SCSS
$custom: #7f127a;
$custom-light: #a861a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f127a",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 302.752,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.17854,
    "h": 330.4
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#7F127A
secondary
#38B53E
accent
#F23F36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F127A

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

Preview Lab → · Contrast checker → · Palette generator →

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