#7A126D#7A126D

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

Color values

HEX#7A126D
RGBrgb(122, 18, 109)
HSLhsl(308, 74%, 27%)
HSVhsv(308, 85%, 48%)
CMYKcmyk(0%, 85.2%, 10.7%, 52.2%)
CIE-LABlab(28.58, 51.54, -26.39)
CIE-LCHlch(28.58, 57.90, 332.88°)
OKLaboklab(40.65% 0.15 -0.0724)
OKLCHoklch(40.65% 0.167 334.2)
XYZxyz(11.0028, 5.6753, 14.9810)
Luminance0.0567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A126D #127A1F
analogous
#53127A #7A126D #7A1239
triadic
#7A126D #6D7A12 #126D7A
tetradic
#7A126D #7A5312 #127A1F #12397A
square
#7A126D #7A5312 #127A1F #12397A
split-complementary
#7A126D #397A12 #127A53
monochromatic
#1B0418 #450A3D #7A126D #AF1A9D #DF27C8

Accessibility & contrast

On white

9.84
#7A126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7A126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A126D
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A126D#FFFFFF#000000##FFFFFF
##7A126D1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3A6F
Deuteranopia (green-blind)
#3A496B
Tritanopia (blue-blind)
#801E40
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a126d;
/* rgb */ color: rgb(122, 18, 109);
/* oklch */ color: oklch(40.7% 0.167 334.2);
Tailwind
colors: {
  custom: {
    50: '#a46097',
    500: '#7a126d',
    950: '#000000',
  },
}
SCSS
$custom: #7a126d;
$custom-light: #a46097;
$custom-dark: #000000;
JSON
{
  "hex": "#7a126d",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 307.5,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40653,
    "c": 0.16654,
    "h": 334.2
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#7A126D
secondary
#38B047
accent
#F14E37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A126D

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

Preview Lab → · Contrast checker → · Palette generator →

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