#7F1180#7F1180

#7F1180 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.184 H 327.8°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7F1180
RGBrgb(127, 17, 128)
HSLhsl(299, 77%, 28%)
HSVhsv(299, 87%, 50%)
CMYKcmyk(0.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(30.57, 55.86, -35.24)
CIE-LCHlch(30.57, 66.05, 327.76°)
OKLaboklab(42.61% 0.1555 -0.0979)
OKLCHoklch(42.61% 0.184 327.8)
XYZxyz(12.8490, 6.4724, 20.9904)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1180 #128011
analogous
#471180 #7F1180 #801149
triadic
#7F1180 #807F11 #11807F
tetradic
#7F1180 #804711 #128011 #114980
square
#7F1180 #804711 #128011 #114980
split-complementary
#7F1180 #498011 #118047
monochromatic
#1B041B #490A4A #7F1180 #B518B6 #E129E3

Accessibility & contrast

On white

9.15
#7F1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1180
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1180#FFFFFF#000000##FFFFFF
##7F11801.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#334D7E
Tritanopia (blue-blind)
#83274B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1180;
/* rgb */ color: rgb(127, 17, 128);
/* oklch */ color: oklch(42.6% 0.184 327.8);
Tailwind
colors: {
  custom: {
    50: '#a861a5',
    500: '#7f1180',
    950: '#000000',
  },
}
SCSS
$custom: #7f1180;
$custom-light: #a861a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1180",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 299.459,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42612,
    "c": 0.18375,
    "h": 327.8
  },
  "luminance": 0.06471
}

Semantic roles & 50–950 ramp

primary
#7F1180
secondary
#38B637
accent
#F33536
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1180

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

Preview Lab → · Contrast checker → · Palette generator →

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