#7F1270#7F1270

#7F1270 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.171 H 334.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7F1270
RGBrgb(127, 18, 112)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 50%)
CMYKcmyk(0%, 85.8%, 11.8%, 50.2%)
CIE-LABlab(29.70, 53.10, -26.48)
CIE-LCHlch(29.70, 59.33, 333.49°)
OKLaboklab(41.69% 0.1552 -0.0725)
OKLCHoklch(41.69% 0.171 334.9)
XYZxyz(11.8935, 6.1156, 15.8801)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1270 #127F21
analogous
#57127F #7F1270 #7F1239
triadic
#7F1270 #707F12 #12707F
tetradic
#7F1270 #7F5712 #127F21 #12397F
square
#7F1270 #7F5712 #127F21 #12397F
split-complementary
#7F1270 #397F12 #127F57
monochromatic
#1B0418 #490A41 #7F1270 #B51A9F #E12BC8

Accessibility & contrast

On white

9.45
#7F1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7F1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1270
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1270#FFFFFF#000000##FFFFFF
##7F12701.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C72
Deuteranopia (green-blind)
#3D4B6E
Tritanopia (blue-blind)
#861E42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1270;
/* rgb */ color: rgb(127, 18, 112);
/* oklch */ color: oklch(41.7% 0.171 334.9);
Tailwind
colors: {
  custom: {
    50: '#a86199',
    500: '#7f1270',
    950: '#000000',
  },
}
SCSS
$custom: #7f1270;
$custom-light: #a86199;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1270",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 308.257,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.17127,
    "h": 334.9
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#7F1270
secondary
#38B549
accent
#F25036
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1270

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

Preview Lab → · Contrast checker → · Palette generator →

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