#7F1278#7F1278

#7F1278 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.177 H 331.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7F1278
RGBrgb(127, 18, 120)
HSLhsl(304, 75%, 28%)
HSVhsv(304, 86%, 50%)
CMYKcmyk(0%, 85.8%, 5.5%, 50.2%)
CIE-LABlab(30.16, 54.34, -30.85)
CIE-LCHlch(30.16, 62.48, 330.42°)
OKLaboklab(42.16% 0.1552 -0.0852)
OKLCHoklch(42.16% 0.177 331.2)
XYZxyz(12.3589, 6.3018, 18.3311)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1278 #127F19
analogous
#4F127F #7F1278 #7F1241
triadic
#7F1278 #787F12 #12787F
tetradic
#7F1278 #7F4F12 #127F19 #12417F
square
#7F1278 #7F4F12 #127F19 #12417F
split-complementary
#7F1278 #417F12 #127F4F
monochromatic
#1B0419 #490A45 #7F1278 #B51AAB #E12BD5

Accessibility & contrast

On white

9.29
#7F1278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1278
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1278#FFFFFF#000000##FFFFFF
##7F12781.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#842347
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1278;
/* rgb */ color: rgb(127, 18, 120);
/* oklch */ color: oklch(42.2% 0.177 331.2);
Tailwind
colors: {
  custom: {
    50: '#a8619f',
    500: '#7f1278',
    950: '#000000',
  },
}
SCSS
$custom: #7f1278;
$custom-light: #a8619f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1278",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 120
  },
  "hsl": {
    "h": 303.853,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42162,
    "c": 0.17706,
    "h": 331.2
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#7F1278
secondary
#38B540
accent
#F24236
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1278

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

Preview Lab → · Contrast checker → · Palette generator →

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