#7F127C#7F127C

#7F127C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.180 H 329.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7F127C
RGBrgb(127, 18, 124)
HSLhsl(302, 75%, 28%)
HSVhsv(302, 86%, 50%)
CMYKcmyk(0%, 85.8%, 2.4%, 50.2%)
CIE-LABlab(30.40, 54.98, -32.99)
CIE-LCHlch(30.40, 64.12, 329.03°)
OKLaboklab(42.41% 0.1551 -0.0914)
OKLCHoklch(42.41% 0.18 329.5)
XYZxyz(12.6067, 6.4009, 19.6364)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F127C #127F15
analogous
#4B127F #7F127C #7F1245
triadic
#7F127C #7C7F12 #127C7F
tetradic
#7F127C #7F4B12 #127F15 #12457F
square
#7F127C #7F4B12 #127F15 #12457F
split-complementary
#7F127C #457F12 #127F4B
monochromatic
#1B041A #490A48 #7F127C #B51AB0 #E12BDC

Accessibility & contrast

On white

9.21
#7F127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F127C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F127C#FFFFFF#000000##FFFFFF
##7F127C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#364C7A
Tritanopia (blue-blind)
#842549
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f127c;
/* rgb */ color: rgb(127, 18, 124);
/* oklch */ color: oklch(42.4% 0.180 329.5);
Tailwind
colors: {
  custom: {
    50: '#a861a2',
    500: '#7f127c',
    950: '#000000',
  },
}
SCSS
$custom: #7f127c;
$custom-light: #a861a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f127c",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 301.651,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.18003,
    "h": 329.5
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#7F127C
secondary
#38B53C
accent
#F23B36
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F127C

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

Preview Lab → · Contrast checker → · Palette generator →

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