#7B126B#7B126B

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

Color values

HEX#7B126B
RGBrgb(123, 18, 107)
HSLhsl(309, 74%, 28%)
HSVhsv(309, 85%, 48%)
CMYKcmyk(0%, 85.4%, 13%, 51.8%)
CIE-LABlab(28.66, 51.45, -24.96)
CIE-LCHlch(28.66, 57.19, 334.12°)
OKLaboklab(40.71% 0.1509 -0.0683)
OKLCHoklch(40.71% 0.166 335.7)
XYZxyz(11.0387, 5.7062, 14.4271)
Luminance0.0570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B126B #127B22
analogous
#57127B #7B126B #7B1236
triadic
#7B126B #6B7B12 #126B7B
tetradic
#7B126B #7B5712 #127B22 #12367B
square
#7B126B #7B5712 #127B22 #12367B
split-complementary
#7B126B #367B12 #127B57
monochromatic
#1B0417 #460A3D #7B126B #B01A99 #E028C4

Accessibility & contrast

On white

9.81
#7B126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B126B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B126B#FFFFFF#000000##FFFFFF
##7B126B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#3B4969
Tritanopia (blue-blind)
#821C3F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b126b;
/* rgb */ color: rgb(123, 18, 107);
/* oklch */ color: oklch(40.7% 0.166 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56095',
    500: '#7b126b',
    950: '#000000',
  },
}
SCSS
$custom: #7b126b;
$custom-light: #a56095;
$custom-dark: #000000;
JSON
{
  "hex": "#7b126b",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 309.143,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.4071,
    "c": 0.16563,
    "h": 335.7
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#7B126B
secondary
#38B14A
accent
#F15337
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7B126B

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

Preview Lab → · Contrast checker → · Palette generator →

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