#7A1CA6#7A1CA6

#7A1CA6 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.3% C 0.205 H 311.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7A1CA6
RGBrgb(122, 28, 166)
HSLhsl(281, 71%, 38%)
HSVhsv(281, 83%, 65%)
CMYKcmyk(26.5%, 83.1%, 0%, 34.9%)
CIE-LABlab(33.40, 59.21, -54.09)
CIE-LCHlch(33.40, 80.20, 317.59°)
OKLaboklab(45.28% 0.1354 -0.1534)
OKLCHoklch(45.28% 0.205 311.4)
XYZxyz(15.3229, 7.7217, 36.7522)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1CA6 #48A61C
analogous
#351CA6 #7A1CA6 #A61C8D
triadic
#7A1CA6 #A67A1C #1CA67A
tetradic
#7A1CA6 #A6351C #48A61C #1C8DA6
square
#7A1CA6 #A6351C #48A61C #1C8DA6
split-complementary
#7A1CA6 #8DA61C #1CA635
monochromatic
#2D0A3D #541372 #7A1CA6 #A025DA #B759E3

Accessibility & contrast

On white

8.25
#7A1CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A1CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1CA6
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1CA6#FFFFFF#000000##FFFFFF
##7A1CA61.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#744063
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a1ca6;
/* rgb */ color: rgb(122, 28, 166);
/* oklch */ color: oklch(45.3% 0.205 311.4);
Tailwind
colors: {
  custom: {
    50: '#a566c1',
    500: '#7a1ca6',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ca6;
$custom-light: #a566c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ca6",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 280.87,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4528,
    "c": 0.20463,
    "h": 311.4
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#7A1CA6
secondary
#7BC757
accent
#EE3A73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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