#7C126B#7C126B

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

Color values

HEX#7C126B
RGBrgb(124, 18, 107)
HSLhsl(310, 75%, 28%)
HSVhsv(310, 85%, 49%)
CMYKcmyk(0%, 85.5%, 13.7%, 51.4%)
CIE-LABlab(28.85, 51.68, -24.65)
CIE-LCHlch(28.85, 57.25, 334.50°)
OKLaboklab(40.88% 0.1519 -0.0673)
OKLCHoklch(40.88% 0.166 336.1)
XYZxyz(11.1825, 5.7803, 14.4338)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C126B #127C23
analogous
#58127C #7C126B #7C1236
triadic
#7C126B #6B7C12 #126B7C
tetradic
#7C126B #7C5812 #127C23 #12367C
square
#7C126B #7C5812 #127C23 #12367C
split-complementary
#7C126B #367C12 #127C58
monochromatic
#1B0417 #470A3D #7C126B #B11A99 #E029C2

Accessibility & contrast

On white

9.74
#7C126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7C126B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C126B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C126B#FFFFFF#000000##FFFFFF
##7C126B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143A6D
Deuteranopia (green-blind)
#3C4969
Tritanopia (blue-blind)
#831C3F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c126b;
/* rgb */ color: rgb(124, 18, 107);
/* oklch */ color: oklch(40.9% 0.166 336.1);
Tailwind
colors: {
  custom: {
    50: '#a66095',
    500: '#7c126b',
    950: '#000000',
  },
}
SCSS
$custom: #7c126b;
$custom-light: #a66095;
$custom-dark: #000000;
JSON
{
  "hex": "#7c126b",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 309.623,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40884,
    "c": 0.16617,
    "h": 336.1
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#7C126B
secondary
#38B24B
accent
#F15437
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7C126B

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

Preview Lab → · Contrast checker → · Palette generator →

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