#7A1987#7A1987

#7A1987 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.181 H 322.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7A1987
RGBrgb(122, 25, 135)
HSLhsl(293, 69%, 31%)
HSVhsv(293, 81%, 53%)
CMYKcmyk(9.6%, 81.5%, 0%, 47.1%)
CIE-LABlab(30.84, 54.04, -39.24)
CIE-LCHlch(30.84, 66.79, 324.02°)
OKLaboklab(42.77% 0.1435 -0.1098)
OKLCHoklch(42.77% 0.181 322.6)
XYZxyz(12.7464, 6.5829, 23.5162)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1987 #268719
analogous
#431987 #7A1987 #87195D
triadic
#7A1987 #877A19 #19877A
tetradic
#7A1987 #874319 #268719 #195D87
square
#7A1987 #874319 #268719 #195D87
split-complementary
#7A1987 #5D8719 #198743
monochromatic
#1D0620 #4B0F53 #7A1987 #A923BB #C93FDB

Accessibility & contrast

On white

9.07
#7A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1987
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1987#FFFFFF#000000##FFFFFF
##7A19871.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1987;
/* rgb */ color: rgb(122, 25, 135);
/* oklch */ color: oklch(42.8% 0.181 322.6);
Tailwind
colors: {
  custom: {
    50: '#a463aa',
    500: '#7a1987',
    950: '#000000',
  },
}
SCSS
$custom: #7a1987;
$custom-light: #a463aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1987",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 292.909,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42773,
    "c": 0.18067,
    "h": 322.6
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#7A1987
secondary
#50BA41
accent
#EC3C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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