#7E126D#7E126D

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

Color values

HEX#7E126D
RGBrgb(126, 18, 109)
HSLhsl(309, 75%, 28%)
HSVhsv(309, 86%, 49%)
CMYKcmyk(0%, 85.7%, 13.5%, 50.6%)
CIE-LABlab(29.35, 52.42, -25.13)
CIE-LCHlch(29.35, 58.14, 334.39°)
OKLaboklab(41.34% 0.154 -0.0687)
OKLCHoklch(41.34% 0.169 336)
XYZxyz(11.5810, 5.9735, 15.0081)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E126D #127E23
analogous
#59127E #7E126D #7E1237
triadic
#7E126D #6D7E12 #126D7E
tetradic
#7E126D #7E5912 #127E23 #12377E
square
#7E126D #7E5912 #127E23 #12377E
split-complementary
#7E126D #377E12 #127E59
monochromatic
#1B0417 #480A3F #7E126D #B41A9B #E12AC4

Accessibility & contrast

On white

9.57
#7E126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E126D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E126D#FFFFFF#000000##FFFFFF
##7E126D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#3D4B6B
Tritanopia (blue-blind)
#851C40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e126d;
/* rgb */ color: rgb(126, 18, 109);
/* oklch */ color: oklch(41.3% 0.169 336.0);
Tailwind
colors: {
  custom: {
    50: '#a76097',
    500: '#7e126d',
    950: '#000000',
  },
}
SCSS
$custom: #7e126d;
$custom-light: #a76097;
$custom-dark: #000000;
JSON
{
  "hex": "#7e126d",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 309.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.16864,
    "h": 336
  },
  "luminance": 0.05972
}

Semantic roles & 50–950 ramp

primary
#7E126D
secondary
#38B44B
accent
#F25436
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E126D

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

Preview Lab → · Contrast checker → · Palette generator →

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