#7A1BA1#7A1BA1

#7A1BA1 is a dark, highly saturated purple. Relative luminance 0.075; OKLCH L 44.8% C 0.201 H 313.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7A1BA1
RGBrgb(122, 27, 161)
HSLhsl(283, 71%, 37%)
HSVhsv(283, 83%, 63%)
CMYKcmyk(24.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(32.91, 58.48, -51.86)
CIE-LCHlch(32.91, 78.17, 318.44°)
OKLaboklab(44.82% 0.1373 -0.1469)
OKLCHoklch(44.82% 0.201 313.1)
XYZxyz(14.8498, 7.4951, 34.3758)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1BA1 #42A11B
analogous
#371BA1 #7A1BA1 #A11B85
triadic
#7A1BA1 #A17A1B #1BA17A
tetradic
#7A1BA1 #A1371B #42A11B #1B85A1
square
#7A1BA1 #A1371B #42A11B #1B85A1
split-complementary
#7A1BA1 #85A11B #1BA137
monochromatic
#2B0938 #52126D #7A1BA1 #A224D5 #B954E2

Accessibility & contrast

On white

8.40
#7A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1BA1
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1BA1#FFFFFF#000000##FFFFFF
##7A1BA11.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#763E60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1ba1;
/* rgb */ color: rgb(122, 27, 161);
/* oklch */ color: oklch(44.8% 0.201 313.1);
Tailwind
colors: {
  custom: {
    50: '#a565be',
    500: '#7a1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #7a1ba1;
$custom-light: #a565be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1ba1",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 282.537,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44819,
    "c": 0.20107,
    "h": 313.1
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#7A1BA1
secondary
#74C552
accent
#EE3A6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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