#7A117E#7A117E

#7A117E is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.7% C 0.180 H 326.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7A117E
RGBrgb(122, 17, 126)
HSLhsl(298, 76%, 28%)
HSVhsv(298, 87%, 49%)
CMYKcmyk(3.2%, 86.5%, 0%, 50.6%)
CIE-LABlab(29.53, 54.54, -35.70)
CIE-LCHlch(29.53, 65.19, 326.79°)
OKLaboklab(41.66% 0.1501 -0.0994)
OKLCHoklch(41.66% 0.18 326.5)
XYZxyz(11.9922, 6.0457, 20.2699)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A117E #157E11
analogous
#43117E #7A117E #7E114B
triadic
#7A117E #7E7A11 #117E7A
tetradic
#7A117E #7E4311 #157E11 #114B7E
square
#7A117E #7E4311 #157E11 #114B7E
split-complementary
#7A117E #4B7E11 #117E43
monochromatic
#1A041B #460A48 #7A117E #AE18B4 #DB27E2

Accessibility & contrast

On white

9.51
#7A117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7A117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A117E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A117E#FFFFFF#000000##FFFFFF
##7A117E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#2F4A7C
Tritanopia (blue-blind)
#7D284A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a117e;
/* rgb */ color: rgb(122, 17, 126);
/* oklch */ color: oklch(41.7% 0.180 326.5);
Tailwind
colors: {
  custom: {
    50: '#a460a4',
    500: '#7a117e',
    950: '#000000',
  },
}
SCSS
$custom: #7a117e;
$custom-light: #a460a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a117e",
  "rgb": {
    "r": 122,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 297.798,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41659,
    "c": 0.18006,
    "h": 326.5
  },
  "luminance": 0.06045
}

Semantic roles & 50–950 ramp

primary
#7A117E
secondary
#3BB437
accent
#F3353C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10050F
muted
#7F7A7F

Preview Lab

Preview with #7A117E

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

Preview Lab → · Contrast checker → · Palette generator →

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