#7E126F#7E126F

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

Color values

HEX#7E126F
RGBrgb(126, 18, 111)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 86%, 49%)
CMYKcmyk(0%, 85.7%, 11.9%, 50.6%)
CIE-LABlab(29.46, 52.73, -26.24)
CIE-LCHlch(29.46, 58.89, 333.54°)
OKLaboklab(41.46% 0.1541 -0.0719)
OKLCHoklch(41.46% 0.17 335)
XYZxyz(11.6899, 6.0170, 15.5816)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E126F #127E21
analogous
#57127E #7E126F #7E1239
triadic
#7E126F #6F7E12 #126F7E
tetradic
#7E126F #7E5712 #127E21 #12397E
square
#7E126F #7E5712 #127E21 #12397E
split-complementary
#7E126F #397E12 #127E57
monochromatic
#1B0418 #480A40 #7E126F #B41A9E #E12AC7

Accessibility & contrast

On white

9.53
#7E126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E126F
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E126F#FFFFFF#000000##FFFFFF
##7E126F1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B71
Deuteranopia (green-blind)
#3C4B6D
Tritanopia (blue-blind)
#851E41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e126f;
/* rgb */ color: rgb(126, 18, 111);
/* oklch */ color: oklch(41.5% 0.170 335.0);
Tailwind
colors: {
  custom: {
    50: '#a76098',
    500: '#7e126f',
    950: '#000000',
  },
}
SCSS
$custom: #7e126f;
$custom-light: #a76098;
$custom-dark: #000000;
JSON
{
  "hex": "#7e126f",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 308.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41457,
    "c": 0.17005,
    "h": 335
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#7E126F
secondary
#38B449
accent
#F25036
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E126F

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

Preview Lab → · Contrast checker → · Palette generator →

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