#7C126E#7C126E

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

Color values

HEX#7C126E
RGBrgb(124, 18, 110)
HSLhsl(308, 75%, 28%)
HSVhsv(308, 85%, 49%)
CMYKcmyk(0%, 85.5%, 11.3%, 51.4%)
CIE-LABlab(29.02, 52.13, -26.32)
CIE-LCHlch(29.02, 58.40, 333.22°)
OKLaboklab(41.06% 0.1521 -0.0721)
OKLCHoklch(41.06% 0.168 334.6)
XYZxyz(11.3431, 5.8445, 15.2795)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C126E #127C20
analogous
#55127C #7C126E #7C1239
triadic
#7C126E #6E7C12 #126E7C
tetradic
#7C126E #7C5512 #127C20 #12397C
square
#7C126E #7C5512 #127C20 #12397C
split-complementary
#7C126E #397C12 #127C55
monochromatic
#1B0418 #470A3F #7C126E #B11A9D #E029C8

Accessibility & contrast

On white

9.68
#7C126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7C126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C126E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C126E#FFFFFF#000000##FFFFFF
##7C126E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B70
Deuteranopia (green-blind)
#3B4A6C
Tritanopia (blue-blind)
#821E41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c126e;
/* rgb */ color: rgb(124, 18, 110);
/* oklch */ color: oklch(41.1% 0.168 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66098',
    500: '#7c126e',
    950: '#000000',
  },
}
SCSS
$custom: #7c126e;
$custom-light: #a66098;
$custom-dark: #000000;
JSON
{
  "hex": "#7c126e",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 307.925,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41055,
    "c": 0.1683,
    "h": 334.6
  },
  "luminance": 0.05843
}

Semantic roles & 50–950 ramp

primary
#7C126E
secondary
#38B248
accent
#F14F37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7C126E

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

Preview Lab → · Contrast checker → · Palette generator →

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