#7A127F#7A127F

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

Color values

HEX#7A127F
RGBrgb(122, 18, 127)
HSLhsl(297, 75%, 28%)
HSVhsv(297, 86%, 50%)
CMYKcmyk(3.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(29.67, 54.48, -36.10)
CIE-LCHlch(29.67, 65.35, 326.47°)
OKLaboklab(41.78% 0.1494 -0.1006)
OKLCHoklch(41.78% 0.18 326)
XYZxyz(12.0729, 6.1034, 20.6167)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A127F #177F12
analogous
#43127F #7A127F #7F124D
triadic
#7A127F #7F7A12 #127F7A
tetradic
#7A127F #7F4312 #177F12 #124D7F
square
#7A127F #7F4312 #177F12 #124D7F
split-complementary
#7A127F #4D7F12 #127F43
monochromatic
#1A041B #470A49 #7A127F #AD1AB5 #D92BE1

Accessibility & contrast

On white

9.46
#7A127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A127F
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A127F#FFFFFF#000000##FFFFFF
##7A127F1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#7D294B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a127f;
/* rgb */ color: rgb(122, 18, 127);
/* oklch */ color: oklch(41.8% 0.180 326.0);
Tailwind
colors: {
  custom: {
    50: '#a460a5',
    500: '#7a127f',
    950: '#000000',
  },
}
SCSS
$custom: #7a127f;
$custom-light: #a460a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a127f",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 297.248,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41781,
    "c": 0.1801,
    "h": 326
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#7A127F
secondary
#3EB538
accent
#F2363F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A127F

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

Preview Lab → · Contrast checker → · Palette generator →

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