#7F127E#7F127E

#7F127E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.182 H 328.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7F127E
RGBrgb(127, 18, 126)
HSLhsl(301, 75%, 28%)
HSVhsv(301, 86%, 50%)
CMYKcmyk(0%, 85.8%, 0.8%, 50.2%)
CIE-LABlab(30.53, 55.31, -34.06)
CIE-LCHlch(30.53, 64.95, 328.38°)
OKLaboklab(42.54% 0.155 -0.0945)
OKLCHoklch(42.54% 0.182 328.6)
XYZxyz(12.7345, 6.4520, 20.3093)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F127E #127F13
analogous
#49127F #7F127E #7F1247
triadic
#7F127E #7E7F12 #127E7F
tetradic
#7F127E #7F4912 #127F13 #12477F
square
#7F127E #7F4912 #127F13 #12477F
split-complementary
#7F127E #477F12 #127F49
monochromatic
#1B041B #490A49 #7F127E #B51AB3 #E12BDF

Accessibility & contrast

On white

9.17
#7F127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F127E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F127E#FFFFFF#000000##FFFFFF
##7F127E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#83264A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f127e;
/* rgb */ color: rgb(127, 18, 126);
/* oklch */ color: oklch(42.5% 0.182 328.6);
Tailwind
colors: {
  custom: {
    50: '#a861a4',
    500: '#7f127e',
    950: '#000000',
  },
}
SCSS
$custom: #7f127e;
$custom-light: #a861a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f127e",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 300.55,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42537,
    "c": 0.18153,
    "h": 328.6
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#7F127E
secondary
#38B539
accent
#F23836
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F127E

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

Preview Lab → · Contrast checker → · Palette generator →

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