#7A2687#7A2687

#7A2687 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.166 H 322.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7A2687
RGBrgb(122, 38, 135)
HSLhsl(292, 56%, 34%)
HSVhsv(292, 72%, 53%)
CMYKcmyk(9.6%, 71.9%, 0%, 47.1%)
CIE-LABlab(32.42, 49.50, -36.70)
CIE-LCHlch(32.42, 61.63, 323.45°)
OKLaboklab(43.9% 0.1312 -0.1025)
OKLCHoklch(43.9% 0.166 322)
XYZxyz(13.0919, 7.2738, 23.6314)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2687 #338726
analogous
#4A2687 #7A2687 #872664
triadic
#7A2687 #877A26 #26877A
tetradic
#7A2687 #874A26 #338726 #266487
square
#7A2687 #874A26 #338726 #266487
split-complementary
#7A2687 #648726 #26874A
monochromatic
#240B27 #4F1957 #7A2687 #A533B7 #C058D0

Accessibility & contrast

On white

8.56
#7A2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7A2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2687
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2687#FFFFFF#000000##FFFFFF
##7A26871.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#7B3754
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a2687;
/* rgb */ color: rgb(122, 38, 135);
/* oklch */ color: oklch(43.9% 0.166 322.0);
Tailwind
colors: {
  custom: {
    50: '#a469aa',
    500: '#7a2687',
    950: '#000000',
  },
}
SCSS
$custom: #7a2687;
$custom-light: #a469aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2687",
  "rgb": {
    "r": 122,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 291.959,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.16649,
    "h": 322
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#7A2687
secondary
#61B554
accent
#DF485D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A2687

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

Preview Lab → · Contrast checker → · Palette generator →

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