#7B126D#7B126D

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

Color values

HEX#7B126D
RGBrgb(123, 18, 109)
HSLhsl(308, 74%, 28%)
HSVhsv(308, 85%, 48%)
CMYKcmyk(0%, 85.4%, 11.4%, 51.8%)
CIE-LABlab(28.77, 51.76, -26.08)
CIE-LCHlch(28.77, 57.96, 333.26°)
OKLaboklab(40.83% 0.151 -0.0715)
OKLCHoklch(40.83% 0.167 334.7)
XYZxyz(11.1451, 5.7487, 14.9877)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B126D #127B20
analogous
#54127B #7B126D #7B1238
triadic
#7B126D #6D7B12 #126D7B
tetradic
#7B126D #7B5412 #127B20 #12387B
square
#7B126D #7B5412 #127B20 #12387B
split-complementary
#7B126D #387B12 #127B54
monochromatic
#1B0418 #460A3E #7B126D #B01A9C #E028C7

Accessibility & contrast

On white

9.77
#7B126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7B126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B126D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B126D#FFFFFF#000000##FFFFFF
##7B126D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103A6F
Deuteranopia (green-blind)
#3B496B
Tritanopia (blue-blind)
#811E40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b126d;
/* rgb */ color: rgb(123, 18, 109);
/* oklch */ color: oklch(40.8% 0.167 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56097',
    500: '#7b126d',
    950: '#000000',
  },
}
SCSS
$custom: #7b126d;
$custom-light: #a56097;
$custom-dark: #000000;
JSON
{
  "hex": "#7b126d",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 308,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.16706,
    "h": 334.7
  },
  "luminance": 0.05748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B126D

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

Preview Lab → · Contrast checker → · Palette generator →

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