#7A1BA7#7A1BA7

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

Color values

HEX#7A1BA7
RGBrgb(122, 27, 167)
HSLhsl(281, 72%, 38%)
HSVhsv(281, 84%, 65%)
CMYKcmyk(26.9%, 83.8%, 0%, 34.5%)
CIE-LABlab(33.38, 59.71, -54.72)
CIE-LCHlch(33.38, 80.99, 317.49°)
OKLaboklab(45.29% 0.1359 -0.1553)
OKLCHoklch(45.29% 0.206 311.2)
XYZxyz(15.3917, 7.7119, 37.2295)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1BA7 #48A71B
analogous
#341BA7 #7A1BA7 #A71B8E
triadic
#7A1BA7 #A77A1B #1BA77A
tetradic
#7A1BA7 #A7341B #48A71B #1B8EA7
square
#7A1BA7 #A7341B #48A71B #1B8EA7
split-complementary
#7A1BA7 #8EA71B #1BA734
monochromatic
#2D0A3E #541272 #7A1BA7 #A024DC #B758E4

Accessibility & contrast

On white

8.26
#7A1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1BA7
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1BA7#FFFFFF#000000##FFFFFF
##7A1BA71.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#744063
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a1ba7;
/* rgb */ color: rgb(122, 27, 167);
/* oklch */ color: oklch(45.3% 0.206 311.2);
Tailwind
colors: {
  custom: {
    50: '#a666c2',
    500: '#7a1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ba7;
$custom-light: #a666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ba7",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 280.714,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4529,
    "c": 0.20632,
    "h": 311.2
  },
  "luminance": 0.07711
}

Semantic roles & 50–950 ramp

primary
#7A1BA7
secondary
#7BC856
accent
#EF3973
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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