#7A2987#7A2987

#7A2987 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.163 H 321.8°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7A2987
RGBrgb(122, 41, 135)
HSLhsl(292, 53%, 35%)
HSVhsv(292, 70%, 53%)
CMYKcmyk(9.6%, 69.6%, 0%, 47.1%)
CIE-LABlab(32.86, 48.27, -36.00)
CIE-LCHlch(32.86, 60.22, 323.28°)
OKLaboklab(44.22% 0.1279 -0.1005)
OKLCHoklch(44.22% 0.163 321.8)
XYZxyz(13.1917, 7.4734, 23.6646)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2987 #368729
analogous
#4B2987 #7A2987 #872965
triadic
#7A2987 #877A29 #29877A
tetradic
#7A2987 #874B29 #368729 #296587
square
#7A2987 #874B29 #368729 #296587
split-complementary
#7A2987 #658729 #29874B
monochromatic
#250C29 #501B58 #7A2987 #A437B6 #BE5DCE

Accessibility & contrast

On white

8.42
#7A2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7A2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2987
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2987#FFFFFF#000000##FFFFFF
##7A29871.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#355085
Tritanopia (blue-blind)
#7B3955
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2987;
/* rgb */ color: rgb(122, 41, 135);
/* oklch */ color: oklch(44.2% 0.163 321.8);
Tailwind
colors: {
  custom: {
    50: '#a36aaa',
    500: '#7a2987',
    950: '#000000',
  },
}
SCSS
$custom: #7a2987;
$custom-light: #a36aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2987",
  "rgb": {
    "r": 122,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 291.702,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44215,
    "c": 0.16261,
    "h": 321.8
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#7A2987
secondary
#65B359
accent
#DD4B5F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2987

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

Preview Lab → · Contrast checker → · Palette generator →

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