#7A126C#7A126C

#7A126C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.166 H 334.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#7A126C
RGBrgb(122, 18, 108)
HSLhsl(308, 74%, 27%)
HSVhsv(308, 85%, 48%)
CMYKcmyk(0%, 85.2%, 11.5%, 52.2%)
CIE-LABlab(28.52, 51.38, -25.84)
CIE-LCHlch(28.52, 57.51, 333.31°)
OKLaboklab(40.6% 0.1499 -0.0708)
OKLCHoklch(40.6% 0.166 334.7)
XYZxyz(10.9493, 5.6539, 14.6991)
Luminance0.0565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A126C #127A20
analogous
#54127A #7A126C #7A1238
triadic
#7A126C #6C7A12 #126C7A
tetradic
#7A126C #7A5412 #127A20 #12387A
square
#7A126C #7A5412 #127A20 #12387A
split-complementary
#7A126C #387A12 #127A54
monochromatic
#1B0418 #450A3D #7A126C #AF1A9B #DF27C6

Accessibility & contrast

On white

9.86
#7A126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A126C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A126C#FFFFFF#000000##FFFFFF
##7A126C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103A6E
Deuteranopia (green-blind)
#3A486A
Tritanopia (blue-blind)
#801D40
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7a126c;
/* rgb */ color: rgb(122, 18, 108);
/* oklch */ color: oklch(40.6% 0.166 334.7);
Tailwind
colors: {
  custom: {
    50: '#a46096',
    500: '#7a126c',
    950: '#000000',
  },
}
SCSS
$custom: #7a126c;
$custom-light: #a46096;
$custom-dark: #000000;
JSON
{
  "hex": "#7a126c",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 308.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.40595,
    "c": 0.16582,
    "h": 334.7
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#7A126C
secondary
#38B048
accent
#F15037
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7A126C

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

Preview Lab → · Contrast checker → · Palette generator →

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