#7A2B87#7A2B87

#7A2B87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.160 H 321.7°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7A2B87
RGBrgb(122, 43, 135)
HSLhsl(292, 52%, 35%)
HSVhsv(292, 68%, 53%)
CMYKcmyk(9.6%, 68.1%, 0%, 47.1%)
CIE-LABlab(33.17, 47.41, -35.51)
CIE-LCHlch(33.17, 59.23, 323.16°)
OKLaboklab(44.44% 0.1255 -0.0991)
OKLCHoklch(44.44% 0.16 321.7)
XYZxyz(13.2626, 7.6153, 23.6883)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B87 #38872B
analogous
#4C2B87 #7A2B87 #872B66
triadic
#7A2B87 #877A2B #2B877A
tetradic
#7A2B87 #874C2B #38872B #2B6687
square
#7A2B87 #874C2B #38872B #2B6687
split-complementary
#7A2B87 #66872B #2B874C
monochromatic
#260D2A #501C59 #7A2B87 #A43AB5 #BD60CC

Accessibility & contrast

On white

8.32
#7A2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7A2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B87
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B87#FFFFFF#000000##FFFFFF
##7A2B871.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#7B3A55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2b87;
/* rgb */ color: rgb(122, 43, 135);
/* oklch */ color: oklch(44.4% 0.160 321.7);
Tailwind
colors: {
  custom: {
    50: '#a36baa',
    500: '#7a2b87',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b87;
$custom-light: #a36baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b87",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 291.522,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44436,
    "c": 0.15991,
    "h": 321.7
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#7A2B87
secondary
#68B25B
accent
#DB4D61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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