#7A126E#7A126E

#7A126E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.167 H 333.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#7A126E
RGBrgb(122, 18, 110)
HSLhsl(307, 74%, 27%)
HSVhsv(307, 85%, 48%)
CMYKcmyk(0%, 85.2%, 9.8%, 52.2%)
CIE-LABlab(28.63, 51.69, -26.94)
CIE-LCHlch(28.63, 58.29, 332.47°)
OKLaboklab(40.71% 0.15 -0.074)
OKLCHoklch(40.71% 0.167 333.7)
XYZxyz(11.0569, 5.6970, 15.2661)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A126E #127A1E
analogous
#52127A #7A126E #7A123A
triadic
#7A126E #6E7A12 #126E7A
tetradic
#7A126E #7A5212 #127A1E #123A7A
square
#7A126E #7A5212 #127A1E #123A7A
split-complementary
#7A126E #3A7A12 #127A52
monochromatic
#1B0418 #450A3E #7A126E #AF1A9E #DF27CA

Accessibility & contrast

On white

9.82
#7A126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7A126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A126E
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A126E#FFFFFF#000000##FFFFFF
##7A126E1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3A70
Deuteranopia (green-blind)
#39496C
Tritanopia (blue-blind)
#801F41
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a126e;
/* rgb */ color: rgb(122, 18, 110);
/* oklch */ color: oklch(40.7% 0.167 333.7);
Tailwind
colors: {
  custom: {
    50: '#a46098',
    500: '#7a126e',
    950: '#000000',
  },
}
SCSS
$custom: #7a126e;
$custom-light: #a46098;
$custom-dark: #000000;
JSON
{
  "hex": "#7a126e",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 306.923,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.16726,
    "h": 333.7
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#7A126E
secondary
#38B046
accent
#F14C37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A126E

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

Preview Lab → · Contrast checker → · Palette generator →

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