#7A1DA8#7A1DA8

#7A1DA8 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.206 H 310.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7A1DA8
RGBrgb(122, 29, 168)
HSLhsl(280, 71%, 39%)
HSVhsv(280, 83%, 66%)
CMYKcmyk(27.4%, 82.7%, 0%, 34.1%)
CIE-LABlab(33.66, 59.33, -54.87)
CIE-LCHlch(33.66, 80.81, 317.24°)
OKLaboklab(45.51% 0.1342 -0.1557)
OKLCHoklch(45.51% 0.206 310.8)
XYZxyz(15.5319, 7.8438, 37.7340)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1DA8 #4BA81D
analogous
#341DA8 #7A1DA8 #A81D90
triadic
#7A1DA8 #A87A1D #1DA87A
tetradic
#7A1DA8 #A8341D #4BA81D #1D90A8
square
#7A1DA8 #A8341D #4BA81D #1D90A8
split-complementary
#7A1DA8 #90A81D #1DA834
monochromatic
#2E0B40 #541474 #7A1DA8 #9F28DA #B65CE3

Accessibility & contrast

On white

8.18
#7A1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1DA8
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1DA8#FFFFFF#000000##FFFFFF
##7A1DA81.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#744264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1da8;
/* rgb */ color: rgb(122, 29, 168);
/* oklch */ color: oklch(45.5% 0.206 310.8);
Tailwind
colors: {
  custom: {
    50: '#a666c3',
    500: '#7a1da8',
    950: '#000000',
  },
}
SCSS
$custom: #7a1da8;
$custom-light: #a666c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1da8",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 280.144,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.20557,
    "h": 310.8
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#7A1DA8
secondary
#7EC75A
accent
#ED3A76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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