#7F126D#7F126D

#7F126D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.169 H 336.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#7F126D
RGBrgb(127, 18, 109)
HSLhsl(310, 75%, 28%)
HSVhsv(310, 86%, 50%)
CMYKcmyk(0%, 85.8%, 14.2%, 50.2%)
CIE-LABlab(29.54, 52.65, -24.81)
CIE-LCHlch(29.54, 58.20, 334.76°)
OKLaboklab(41.52% 0.155 -0.0677)
OKLCHoklch(41.52% 0.169 336.4)
XYZxyz(11.7292, 6.0499, 15.0151)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126D #127F24
analogous
#5A127F #7F126D #7F1236
triadic
#7F126D #6D7F12 #126D7F
tetradic
#7F126D #7F5A12 #127F24 #12367F
square
#7F126D #7F5A12 #127F24 #12367F
split-complementary
#7F126D #367F12 #127F5A
monochromatic
#1B0417 #490A3F #7F126D #B51A9B #E12BC3

Accessibility & contrast

On white

9.50
#7F126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F126D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126D#FFFFFF#000000##FFFFFF
##7F126D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6F
Deuteranopia (green-blind)
#3E4B6B
Tritanopia (blue-blind)
#861C40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f126d;
/* rgb */ color: rgb(127, 18, 109);
/* oklch */ color: oklch(41.5% 0.169 336.4);
Tailwind
colors: {
  custom: {
    50: '#a86097',
    500: '#7f126d',
    950: '#000000',
  },
}
SCSS
$custom: #7f126d;
$custom-light: #a86097;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126d",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 309.908,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41517,
    "c": 0.16917,
    "h": 336.4
  },
  "luminance": 0.06049
}

Semantic roles & 50–950 ramp

primary
#7F126D
secondary
#38B54D
accent
#F25536
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F126D

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

Preview Lab → · Contrast checker → · Palette generator →

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