#7A1DA7#7A1DA7

#7A1DA7 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.4% C 0.205 H 311.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7A1DA7
RGBrgb(122, 29, 167)
HSLhsl(280, 70%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(26.9%, 82.6%, 0%, 34.5%)
CIE-LABlab(33.58, 59.12, -54.40)
CIE-LCHlch(33.58, 80.34, 317.38°)
OKLaboklab(45.43% 0.1345 -0.1543)
OKLCHoklch(45.43% 0.205 311.1)
XYZxyz(15.4391, 7.8067, 37.2453)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1DA7 #4AA71D
analogous
#351DA7 #7A1DA7 #A71D8F
triadic
#7A1DA7 #A77A1D #1DA77A
tetradic
#7A1DA7 #A7351D #4AA71D #1D8FA7
square
#7A1DA7 #A7351D #4AA71D #1D8FA7
split-complementary
#7A1DA7 #8FA71D #1DA735
monochromatic
#2E0B3F #541473 #7A1DA7 #A028DA #B75CE3

Accessibility & contrast

On white

8.20
#7A1DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7A1DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1DA7
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1DA7#FFFFFF#000000##FFFFFF
##7A1DA71.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#744164
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1da7;
/* rgb */ color: rgb(122, 29, 167);
/* oklch */ color: oklch(45.4% 0.205 311.1);
Tailwind
colors: {
  custom: {
    50: '#a666c2',
    500: '#7a1da7',
    950: '#000000',
  },
}
SCSS
$custom: #7a1da7;
$custom-light: #a666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1da7",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 280.435,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.20468,
    "h": 311.1
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#7A1DA7
secondary
#7DC759
accent
#ED3B75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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