#7A168D#7A168D

#7A168D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 43.0% C 0.188 H 320.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7A168D
RGBrgb(122, 22, 141)
HSLhsl(290, 73%, 32%)
HSVhsv(290, 84%, 55%)
CMYKcmyk(13.5%, 84.4%, 0%, 44.7%)
CIE-LABlab(30.96, 55.99, -42.77)
CIE-LCHlch(30.96, 70.45, 322.62°)
OKLaboklab(42.99% 0.1449 -0.1201)
OKLCHoklch(42.99% 0.188 320.3)
XYZxyz(13.1201, 6.6352, 25.7838)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A168D #298D16
analogous
#3F168D #7A168D #8D1665
triadic
#7A168D #8D7A16 #168D7A
tetradic
#7A168D #8D3F16 #298D16 #16658D
square
#7A168D #8D3F16 #298D16 #16658D
split-complementary
#7A168D #658D16 #168D3F
monochromatic
#1E0523 #4C0E58 #7A168D #A81EC2 #C73DE1

Accessibility & contrast

On white

9.03
#7A168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A168D
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A168D#FFFFFF#000000##FFFFFF
##7A168D1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#244C8A
Tritanopia (blue-blind)
#7A3253
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a168d;
/* rgb */ color: rgb(122, 22, 141);
/* oklch */ color: oklch(43.0% 0.188 320.3);
Tailwind
colors: {
  custom: {
    50: '#a462af',
    500: '#7a168d',
    950: '#000000',
  },
}
SCSS
$custom: #7a168d;
$custom-light: #a462af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a168d",
  "rgb": {
    "r": 122,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 290.42,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42991,
    "c": 0.1882,
    "h": 320.3
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#7A168D
secondary
#53C13E
accent
#F03855
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A168D

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

Preview Lab → · Contrast checker → · Palette generator →

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