#7B127E#7B127E

#7B127E is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.9% C 0.180 H 326.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7B127E
RGBrgb(123, 18, 126)
HSLhsl(298, 75%, 28%)
HSVhsv(298, 86%, 49%)
CMYKcmyk(2.4%, 85.7%, 0%, 50.6%)
CIE-LABlab(29.79, 54.51, -35.27)
CIE-LCHlch(29.79, 64.92, 327.09°)
OKLaboklab(41.88% 0.1506 -0.0981)
OKLCHoklch(41.88% 0.18 326.9)
XYZxyz(12.1504, 6.1508, 20.2819)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B127E #157E12
analogous
#45127E #7B127E #7E124B
triadic
#7B127E #7E7B12 #127E7B
tetradic
#7B127E #7E4512 #157E12 #124B7E
square
#7B127E #7E4512 #157E12 #124B7E
split-complementary
#7B127E #4B7E12 #127E45
monochromatic
#1A041B #470A48 #7B127E #AF1AB4 #DB2AE1

Accessibility & contrast

On white

9.42
#7B127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7B127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B127E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B127E#FFFFFF#000000##FFFFFF
##7B127E1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7F284A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b127e;
/* rgb */ color: rgb(123, 18, 126);
/* oklch */ color: oklch(41.9% 0.180 326.9);
Tailwind
colors: {
  custom: {
    50: '#a561a4',
    500: '#7b127e',
    950: '#000000',
  },
}
SCSS
$custom: #7b127e;
$custom-light: #a561a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b127e",
  "rgb": {
    "r": 123,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 298.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41879,
    "c": 0.17976,
    "h": 326.9
  },
  "luminance": 0.0615
}

Semantic roles & 50–950 ramp

primary
#7B127E
secondary
#3BB438
accent
#F2363B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B127E

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

Preview Lab → · Contrast checker → · Palette generator →

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