#7A126F#7A126F

#7A126F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.168 H 333.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#7A126F
RGBrgb(122, 18, 111)
HSLhsl(306, 74%, 27%)
HSVhsv(306, 85%, 48%)
CMYKcmyk(0%, 85.2%, 9%, 52.2%)
CIE-LABlab(28.69, 51.85, -27.50)
CIE-LCHlch(28.69, 58.69, 332.06°)
OKLaboklab(40.77% 0.15 -0.0756)
OKLCHoklch(40.77% 0.168 333.3)
XYZxyz(11.1117, 5.7189, 15.5545)
Luminance0.0572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A126F #127A1D
analogous
#51127A #7A126F #7A123B
triadic
#7A126F #6F7A12 #126F7A
tetradic
#7A126F #7A5112 #127A1D #123B7A
square
#7A126F #7A5112 #127A1D #123B7A
split-complementary
#7A126F #3B7A12 #127A51
monochromatic
#1B0418 #450A3E #7A126F #AF1AA0 #DF27CC

Accessibility & contrast

On white

9.80
#7A126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A126F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A126F#FFFFFF#000000##FFFFFF
##7A126F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A71
Deuteranopia (green-blind)
#39496D
Tritanopia (blue-blind)
#801F41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a126f;
/* rgb */ color: rgb(122, 18, 111);
/* oklch */ color: oklch(40.8% 0.168 333.3);
Tailwind
colors: {
  custom: {
    50: '#a46098',
    500: '#7a126f',
    950: '#000000',
  },
}
SCSS
$custom: #7a126f;
$custom-light: #a46098;
$custom-dark: #000000;
JSON
{
  "hex": "#7a126f",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 306.346,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40771,
    "c": 0.168,
    "h": 333.3
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#7A126F
secondary
#38B044
accent
#F14B37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7A126F

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

Preview Lab → · Contrast checker → · Palette generator →

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