#7B1987#7B1987

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

Color values

HEX#7B1987
RGBrgb(123, 25, 135)
HSLhsl(293, 69%, 31%)
HSVhsv(293, 81%, 53%)
CMYKcmyk(8.9%, 81.5%, 0%, 47.1%)
CIE-LABlab(31.01, 54.24, -38.95)
CIE-LCHlch(31.01, 66.78, 324.32°)
OKLaboklab(42.93% 0.1447 -0.1089)
OKLCHoklch(42.93% 0.181 323)
XYZxyz(12.8888, 6.6563, 23.5229)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1987 #258719
analogous
#441987 #7B1987 #87195C
triadic
#7B1987 #877B19 #19877B
tetradic
#7B1987 #874419 #258719 #195C87
square
#7B1987 #874419 #258719 #195C87
split-complementary
#7B1987 #5C8719 #198744
monochromatic
#1D0620 #4C0F53 #7B1987 #AA23BB #CA3FDB

Accessibility & contrast

On white

9.01
#7B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1987
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1987#FFFFFF#000000##FFFFFF
##7B19871.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.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: #7b1987;
/* rgb */ color: rgb(123, 25, 135);
/* oklch */ color: oklch(42.9% 0.181 323.0);
Tailwind
colors: {
  custom: {
    50: '#a563aa',
    500: '#7b1987',
    950: '#000000',
  },
}
SCSS
$custom: #7b1987;
$custom-light: #a563aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1987",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 293.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4293,
    "c": 0.18109,
    "h": 323
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#7B1987
secondary
#4FBA41
accent
#EC3C4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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