#7F1272#7F1272

#7F1272 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.173 H 334.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7F1272
RGBrgb(127, 18, 114)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 50%)
CMYKcmyk(0%, 85.8%, 10.2%, 50.2%)
CIE-LABlab(29.81, 53.40, -27.58)
CIE-LCHlch(29.81, 60.10, 332.68°)
OKLaboklab(41.8% 0.1552 -0.0757)
OKLCHoklch(41.8% 0.173 334)
XYZxyz(12.0061, 6.1606, 16.4731)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1272 #127F1F
analogous
#55127F #7F1272 #7F123B
triadic
#7F1272 #727F12 #12727F
tetradic
#7F1272 #7F5512 #127F1F #123B7F
square
#7F1272 #7F5512 #127F1F #123B7F
split-complementary
#7F1272 #3B7F12 #127F55
monochromatic
#1B0418 #490A42 #7F1272 #B51AA2 #E12BCB

Accessibility & contrast

On white

9.41
#7F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1272
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1272#FFFFFF#000000##FFFFFF
##7F12721.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#851F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1272;
/* rgb */ color: rgb(127, 18, 114);
/* oklch */ color: oklch(41.8% 0.173 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8619b',
    500: '#7f1272',
    950: '#000000',
  },
}
SCSS
$custom: #7f1272;
$custom-light: #a8619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1272",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 307.156,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41803,
    "c": 0.1727,
    "h": 334
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#7F1272
secondary
#38B547
accent
#F24C36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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