#7A2D87#7A2D87

#7A2D87 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.157 H 321.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7A2D87
RGBrgb(122, 45, 135)
HSLhsl(291, 50%, 35%)
HSVhsv(291, 67%, 53%)
CMYKcmyk(9.6%, 66.7%, 0%, 47.1%)
CIE-LABlab(33.49, 46.52, -35.01)
CIE-LCHlch(33.49, 58.22, 323.04°)
OKLaboklab(44.67% 0.1231 -0.0976)
OKLCHoklch(44.67% 0.157 321.6)
XYZxyz(13.3371, 7.7643, 23.7131)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2D87 #3A872D
analogous
#4D2D87 #7A2D87 #872D67
triadic
#7A2D87 #877A2D #2D877A
tetradic
#7A2D87 #874D2D #3A872D #2D6787
square
#7A2D87 #874D2D #3A872D #2D6787
split-complementary
#7A2D87 #67872D #2D874D
monochromatic
#270E2B #511E59 #7A2D87 #A33CB5 #BC63CB

Accessibility & contrast

On white

8.23
#7A2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7A2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2D87
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2D87#FFFFFF#000000##FFFFFF
##7A2D871.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#375285
Tritanopia (blue-blind)
#7B3C56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2d87;
/* rgb */ color: rgb(122, 45, 135);
/* oklch */ color: oklch(44.7% 0.157 321.6);
Tailwind
colors: {
  custom: {
    50: '#a36caa',
    500: '#7a2d87',
    950: '#000000',
  },
}
SCSS
$custom: #7a2d87;
$custom-light: #a36caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2d87",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 291.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44666,
    "c": 0.15711,
    "h": 321.6
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#7A2D87
secondary
#6AB25E
accent
#DA4E62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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