#7A2587#7A2587

#7A2587 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.168 H 322.1°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7A2587
RGBrgb(122, 37, 135)
HSLhsl(292, 57%, 34%)
HSVhsv(292, 73%, 53%)
CMYKcmyk(9.6%, 72.6%, 0%, 47.1%)
CIE-LABlab(32.28, 49.90, -36.93)
CIE-LCHlch(32.28, 62.08, 323.50°)
OKLaboklab(43.8% 0.1323 -0.1031)
OKLCHoklch(43.8% 0.168 322.1)
XYZxyz(13.0603, 7.2107, 23.6209)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2587 #328725
analogous
#492587 #7A2587 #872563
triadic
#7A2587 #877A25 #25877A
tetradic
#7A2587 #874925 #328725 #256387
square
#7A2587 #874925 #328725 #256387
split-complementary
#7A2587 #638725 #258749
monochromatic
#230B27 #4F1857 #7A2587 #A532B7 #C056D1

Accessibility & contrast

On white

8.60
#7A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2587
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2587#FFFFFF#000000##FFFFFF
##7A25871.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#7B3753
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a2587;
/* rgb */ color: rgb(122, 37, 135);
/* oklch */ color: oklch(43.8% 0.168 322.1);
Tailwind
colors: {
  custom: {
    50: '#a468aa',
    500: '#7a2587',
    950: '#000000',
  },
}
SCSS
$custom: #7a2587;
$custom-light: #a468aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2587",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 292.041,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.438,
    "c": 0.16774,
    "h": 322.1
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#7A2587
secondary
#60B553
accent
#E0485C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A2587

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

Preview Lab → · Contrast checker → · Palette generator →

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