#7B1A87#7B1A87

#7B1A87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.180 H 323.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7B1A87
RGBrgb(123, 26, 135)
HSLhsl(293, 68%, 32%)
HSVhsv(293, 81%, 53%)
CMYKcmyk(8.9%, 80.7%, 0%, 47.1%)
CIE-LABlab(31.11, 53.95, -38.79)
CIE-LCHlch(31.11, 66.44, 324.28°)
OKLaboklab(43% 0.1439 -0.1085)
OKLCHoklch(43% 0.18 323)
XYZxyz(12.9105, 6.6998, 23.5301)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A87 #26871A
analogous
#441A87 #7B1A87 #871A5D
triadic
#7B1A87 #877B1A #1A877B
tetradic
#7B1A87 #87441A #26871A #1A5D87
square
#7B1A87 #87441A #26871A #1A5D87
split-complementary
#7B1A87 #5D871A #1A8744
monochromatic
#1D0620 #4C1054 #7B1A87 #AA24BA #CA41DA

Accessibility & contrast

On white

8.98
#7B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A87
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A87#FFFFFF#000000##FFFFFF
##7B1A871.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1a87;
/* rgb */ color: rgb(123, 26, 135);
/* oklch */ color: oklch(43.0% 0.180 323.0);
Tailwind
colors: {
  custom: {
    50: '#a564aa',
    500: '#7b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a87;
$custom-light: #a564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a87",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 293.394,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.18016,
    "h": 323
  },
  "luminance": 0.06699
}

Semantic roles & 50–950 ramp

primary
#7B1A87
secondary
#50BA42
accent
#EB3D50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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