#7C126F#7C126F

#7C126F is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.169 H 334.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7C126F
RGBrgb(124, 18, 111)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 85%, 49%)
CMYKcmyk(0%, 85.5%, 10.5%, 51.4%)
CIE-LABlab(29.07, 52.29, -26.87)
CIE-LCHlch(29.07, 58.79, 332.80°)
OKLaboklab(41.11% 0.1521 -0.0737)
OKLCHoklch(41.11% 0.169 334.1)
XYZxyz(11.3979, 5.8664, 15.5679)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C126F #127C1F
analogous
#54127C #7C126F #7C123A
triadic
#7C126F #6F7C12 #126F7C
tetradic
#7C126F #7C5412 #127C1F #123A7C
square
#7C126F #7C5412 #127C1F #123A7C
split-complementary
#7C126F #3A7C12 #127C54
monochromatic
#1B0418 #470A3F #7C126F #B11A9F #E029C9

Accessibility & contrast

On white

9.66
#7C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C126F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C126F#FFFFFF#000000##FFFFFF
##7C126F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B71
Deuteranopia (green-blind)
#3A4A6D
Tritanopia (blue-blind)
#821E41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7c126f;
/* rgb */ color: rgb(124, 18, 111);
/* oklch */ color: oklch(41.1% 0.169 334.1);
Tailwind
colors: {
  custom: {
    50: '#a66098',
    500: '#7c126f',
    950: '#000000',
  },
}
SCSS
$custom: #7c126f;
$custom-light: #a66098;
$custom-dark: #000000;
JSON
{
  "hex": "#7c126f",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 307.358,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.16901,
    "h": 334.1
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#7C126F
secondary
#38B247
accent
#F14D37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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