#7F126F#7F126F

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

Color values

HEX#7F126F
RGBrgb(127, 18, 111)
HSLhsl(309, 75%, 28%)
HSVhsv(309, 86%, 50%)
CMYKcmyk(0%, 85.8%, 12.6%, 50.2%)
CIE-LABlab(29.65, 52.94, -25.93)
CIE-LCHlch(29.65, 58.95, 333.91°)
OKLaboklab(41.63% 0.1551 -0.0709)
OKLCHoklch(41.63% 0.171 335.4)
XYZxyz(11.8381, 6.0935, 15.5885)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F126F #127F22
analogous
#58127F #7F126F #7F1238
triadic
#7F126F #6F7F12 #126F7F
tetradic
#7F126F #7F5812 #127F22 #12387F
square
#7F126F #7F5812 #127F22 #12387F
split-complementary
#7F126F #387F12 #127F58
monochromatic
#1B0417 #490A40 #7F126F #B51A9E #E12BC6

Accessibility & contrast

On white

9.47
#7F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7F126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F126F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F126F#FFFFFF#000000##FFFFFF
##7F126F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#861D41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f126f;
/* rgb */ color: rgb(127, 18, 111);
/* oklch */ color: oklch(41.6% 0.171 335.4);
Tailwind
colors: {
  custom: {
    50: '#a86198',
    500: '#7f126f',
    950: '#000000',
  },
}
SCSS
$custom: #7f126f;
$custom-light: #a86198;
$custom-dark: #000000;
JSON
{
  "hex": "#7f126f",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 308.807,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4163,
    "c": 0.17057,
    "h": 335.4
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#7F126F
secondary
#38B54A
accent
#F25236
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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