#7A1B87#7A1B87

#7A1B87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.179 H 322.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7A1B87
RGBrgb(122, 27, 135)
HSLhsl(293, 67%, 32%)
HSVhsv(293, 80%, 53%)
CMYKcmyk(9.6%, 80%, 0%, 47.1%)
CIE-LABlab(31.05, 53.44, -38.91)
CIE-LCHlch(31.05, 66.10, 323.94°)
OKLaboklab(42.92% 0.1418 -0.1088)
OKLCHoklch(42.92% 0.179 322.5)
XYZxyz(12.7907, 6.6715, 23.5310)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B87 #28871B
analogous
#441B87 #7A1B87 #871B5E
triadic
#7A1B87 #877A1B #1B877A
tetradic
#7A1B87 #87441B #28871B #1B5E87
square
#7A1B87 #87441B #28871B #1B5E87
split-complementary
#7A1B87 #5E871B #1B8744
monochromatic
#1E0721 #4C1154 #7A1B87 #A825BA #C743D9

Accessibility & contrast

On white

9.00
#7A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B87
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B87#FFFFFF#000000##FFFFFF
##7A1B871.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2C4D85
Tritanopia (blue-blind)
#7C3151
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1b87;
/* rgb */ color: rgb(122, 27, 135);
/* oklch */ color: oklch(42.9% 0.179 322.5);
Tailwind
colors: {
  custom: {
    50: '#a464aa',
    500: '#7a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b87;
$custom-light: #a464aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b87",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 292.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42921,
    "c": 0.17878,
    "h": 322.5
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#7A1B87
secondary
#52BA44
accent
#EA3E53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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