#7F127D#7F127D

#7F127D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.181 H 329.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7F127D
RGBrgb(127, 18, 125)
HSLhsl(301, 75%, 28%)
HSVhsv(301, 86%, 50%)
CMYKcmyk(0%, 85.8%, 1.6%, 50.2%)
CIE-LABlab(30.46, 55.15, -33.53)
CIE-LCHlch(30.46, 64.54, 328.70°)
OKLaboklab(42.47% 0.1551 -0.0929)
OKLCHoklch(42.47% 0.181 329.1)
XYZxyz(12.6703, 6.4263, 19.9711)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F127D #127F14
analogous
#4A127F #7F127D #7F1246
triadic
#7F127D #7D7F12 #127D7F
tetradic
#7F127D #7F4A12 #127F14 #12467F
square
#7F127D #7F4A12 #127F14 #12467F
split-complementary
#7F127D #467F12 #127F4A
monochromatic
#1B041A #490A48 #7F127D #B51AB2 #E12BDE

Accessibility & contrast

On white

9.19
#7F127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F127D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F127D#FFFFFF#000000##FFFFFF
##7F127D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#364C7B
Tritanopia (blue-blind)
#842649
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f127d;
/* rgb */ color: rgb(127, 18, 125);
/* oklch */ color: oklch(42.5% 0.181 329.1);
Tailwind
colors: {
  custom: {
    50: '#a861a3',
    500: '#7f127d',
    950: '#000000',
  },
}
SCSS
$custom: #7f127d;
$custom-light: #a861a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f127d",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 301.101,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42474,
    "c": 0.18078,
    "h": 329.1
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#7F127D
secondary
#38B53A
accent
#F23936
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F127D

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

Preview Lab → · Contrast checker → · Palette generator →

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