#7A1B9B#7A1B9B

#7A1B9B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.196 H 315.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7A1B9B
RGBrgb(122, 27, 155)
HSLhsl(285, 70%, 36%)
HSVhsv(285, 83%, 61%)
CMYKcmyk(21.3%, 82.6%, 0%, 39.2%)
CIE-LABlab(32.45, 57.28, -48.95)
CIE-LCHlch(32.45, 75.35, 319.48°)
OKLaboklab(44.36% 0.1387 -0.1383)
OKLCHoklch(44.36% 0.196 315.1)
XYZxyz(14.3334, 7.2885, 31.6558)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B9B #3C9B1B
analogous
#3A1B9B #7A1B9B #9B1B7C
triadic
#7A1B9B #9B7A1B #1B9B7A
tetradic
#7A1B9B #9B3A1B #3C9B1B #1B7C9B
square
#7A1B9B #9B3A1B #3C9B1B #1B7C9B
split-complementary
#7A1B9B #7C9B1B #1B9B3A
monochromatic
#280933 #511267 #7A1B9B #A324CF #BB50E0

Accessibility & contrast

On white

8.54
#7A1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7A1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B9B
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B9B#FFFFFF#000000##FFFFFF
##7A1B9B1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#124F98
Tritanopia (blue-blind)
#773B5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a1b9b;
/* rgb */ color: rgb(122, 27, 155);
/* oklch */ color: oklch(44.4% 0.196 315.1);
Tailwind
colors: {
  custom: {
    50: '#a565b9',
    500: '#7a1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b9b;
$custom-light: #a565b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b9b",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 284.531,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.19585,
    "h": 315.1
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#7A1B9B
secondary
#6DC34F
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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