#7B126E#7B126E

#7B126E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.168 H 334.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#7B126E
RGBrgb(123, 18, 110)
HSLhsl(307, 74%, 28%)
HSVhsv(307, 85%, 48%)
CMYKcmyk(0%, 85.4%, 10.6%, 51.8%)
CIE-LABlab(28.83, 51.91, -26.63)
CIE-LCHlch(28.83, 58.34, 332.84°)
OKLaboklab(40.88% 0.151 -0.0731)
OKLCHoklch(40.88% 0.168 334.2)
XYZxyz(11.1993, 5.7704, 15.2728)
Luminance0.0577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B126E #127B1F
analogous
#54127B #7B126E #7B1239
triadic
#7B126E #6E7B12 #126E7B
tetradic
#7B126E #7B5412 #127B1F #12397B
square
#7B126E #7B5412 #127B1F #12397B
split-complementary
#7B126E #397B12 #127B54
monochromatic
#1B0418 #460A3E #7B126E #B01A9E #E028C9

Accessibility & contrast

On white

9.75
#7B126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B126E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B126E#FFFFFF#000000##FFFFFF
##7B126E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3A70
Deuteranopia (green-blind)
#3A496C
Tritanopia (blue-blind)
#811E41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b126e;
/* rgb */ color: rgb(123, 18, 110);
/* oklch */ color: oklch(40.9% 0.168 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56098',
    500: '#7b126e',
    950: '#000000',
  },
}
SCSS
$custom: #7b126e;
$custom-light: #a56098;
$custom-dark: #000000;
JSON
{
  "hex": "#7b126e",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 307.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40884,
    "c": 0.16778,
    "h": 334.2
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B126E

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

Preview Lab → · Contrast checker → · Palette generator →

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