#7B126A#7B126A

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

Color values

HEX#7B126A
RGBrgb(123, 18, 106)
HSLhsl(310, 74%, 28%)
HSVhsv(310, 85%, 48%)
CMYKcmyk(0%, 85.4%, 13.8%, 51.8%)
CIE-LABlab(28.60, 51.30, -24.41)
CIE-LCHlch(28.60, 56.81, 334.56°)
OKLaboklab(40.65% 0.1509 -0.0667)
OKLCHoklch(40.65% 0.165 336.2)
XYZxyz(10.9864, 5.6852, 14.1516)
Luminance0.0568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B126A #127B23
analogous
#57127B #7B126A #7B1236
triadic
#7B126A #6A7B12 #126A7B
tetradic
#7B126A #7B5712 #127B23 #12367B
square
#7B126A #7B5712 #127B23 #12367B
split-complementary
#7B126A #367B12 #127B57
monochromatic
#1B0417 #460A3C #7B126A #B01A98 #E028C2

Accessibility & contrast

On white

9.83
#7B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B126A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B126A#FFFFFF#000000##FFFFFF
##7B126A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143A6C
Deuteranopia (green-blind)
#3C4968
Tritanopia (blue-blind)
#821C3E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7b126a;
/* rgb */ color: rgb(123, 18, 106);
/* oklch */ color: oklch(40.7% 0.165 336.2);
Tailwind
colors: {
  custom: {
    50: '#a56095',
    500: '#7b126a',
    950: '#000000',
  },
}
SCSS
$custom: #7b126a;
$custom-light: #a56095;
$custom-dark: #000000;
JSON
{
  "hex": "#7b126a",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 309.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40654,
    "c": 0.16492,
    "h": 336.2
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#7B126A
secondary
#38B14B
accent
#F15537
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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