#7F126E#7F126E

#7F126E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.170 H 335.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7F126E
RGBrgb(127, 18, 110)
HSLhsl(309, 75%, 28%)
HSVhsv(309, 86%, 50%)
CMYKcmyk(0%, 85.8%, 13.4%, 50.2%)
CIE-LABlab(29.59, 52.80, -25.37)
CIE-LCHlch(29.59, 58.58, 334.33°)
OKLaboklab(41.57% 0.1551 -0.0693)
OKLCHoklch(41.57% 0.17 335.9)
XYZxyz(11.7834, 6.0716, 15.3002)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126E #127F23
analogous
#59127F #7F126E #7F1237
triadic
#7F126E #6E7F12 #126E7F
tetradic
#7F126E #7F5912 #127F23 #12377F
square
#7F126E #7F5912 #127F23 #12377F
split-complementary
#7F126E #377F12 #127F59
monochromatic
#1B0417 #490A40 #7F126E #B51A9C #E12BC4

Accessibility & contrast

On white

9.49
#7F126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F126E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126E#FFFFFF#000000##FFFFFF
##7F126E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C70
Deuteranopia (green-blind)
#3E4B6C
Tritanopia (blue-blind)
#861D41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f126e;
/* rgb */ color: rgb(127, 18, 110);
/* oklch */ color: oklch(41.6% 0.170 335.9);
Tailwind
colors: {
  custom: {
    50: '#a86098',
    500: '#7f126e',
    950: '#000000',
  },
}
SCSS
$custom: #7f126e;
$custom-light: #a86098;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126e",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 309.358,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.16986,
    "h": 335.9
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#7F126E
secondary
#38B54C
accent
#F25336
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F126E

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

Preview Lab → · Contrast checker → · Palette generator →

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