#7F1276#7F1276

#7F1276 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.176 H 332.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#7F1276
RGBrgb(127, 18, 118)
HSLhsl(305, 75%, 28%)
HSVhsv(305, 86%, 50%)
CMYKcmyk(0%, 85.8%, 7.1%, 50.2%)
CIE-LABlab(30.04, 54.02, -29.76)
CIE-LCHlch(30.04, 61.68, 331.15°)
OKLaboklab(42.04% 0.1553 -0.082)
OKLCHoklch(42.04% 0.176 332.1)
XYZxyz(12.2388, 6.2537, 17.6985)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1276 #127F1B
analogous
#51127F #7F1276 #7F123F
triadic
#7F1276 #767F12 #12767F
tetradic
#7F1276 #7F5112 #127F1B #123F7F
square
#7F1276 #7F5112 #127F1B #123F7F
split-complementary
#7F1276 #3F7F12 #127F51
monochromatic
#1B0419 #490A44 #7F1276 #B51AA8 #E12BD2

Accessibility & contrast

On white

9.33
#7F1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1276
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1276#FFFFFF#000000##FFFFFF
##7F12761.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053D78
Deuteranopia (green-blind)
#3A4C74
Tritanopia (blue-blind)
#852245
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1276;
/* rgb */ color: rgb(127, 18, 118);
/* oklch */ color: oklch(42.0% 0.176 332.1);
Tailwind
colors: {
  custom: {
    50: '#a8619e',
    500: '#7f1276',
    950: '#000000',
  },
}
SCSS
$custom: #7f1276;
$custom-light: #a8619e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1276",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 304.954,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42041,
    "c": 0.17559,
    "h": 332.1
  },
  "luminance": 0.06253
}

Semantic roles & 50–950 ramp

primary
#7F1276
secondary
#38B542
accent
#F24636
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1276

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

Preview Lab → · Contrast checker → · Palette generator →

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