#7A2C87#7A2C87

#7A2C87 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.159 H 321.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7A2C87
RGBrgb(122, 44, 135)
HSLhsl(291, 51%, 35%)
HSVhsv(291, 67%, 53%)
CMYKcmyk(9.6%, 67.4%, 0%, 47.1%)
CIE-LABlab(33.33, 46.96, -35.26)
CIE-LCHlch(33.33, 58.73, 323.10°)
OKLaboklab(44.55% 0.1243 -0.0983)
OKLCHoklch(44.55% 0.159 321.7)
XYZxyz(13.2994, 7.6889, 23.7006)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2C87 #39872C
analogous
#4D2C87 #7A2C87 #872C66
triadic
#7A2C87 #877A2C #2C877A
tetradic
#7A2C87 #874D2C #39872C #2C6687
square
#7A2C87 #874D2C #39872C #2C6687
split-complementary
#7A2C87 #66872C #2C874D
monochromatic
#270E2B #501D59 #7A2C87 #A43BB5 #BD62CC

Accessibility & contrast

On white

8.28
#7A2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2C87
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2C87#FFFFFF#000000##FFFFFF
##7A2C871.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#7B3B56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a2c87;
/* rgb */ color: rgb(122, 44, 135);
/* oklch */ color: oklch(44.5% 0.159 321.7);
Tailwind
colors: {
  custom: {
    50: '#a36baa',
    500: '#7a2c87',
    950: '#000000',
  },
}
SCSS
$custom: #7a2c87;
$custom-light: #a36baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2c87",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 291.429,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.15852,
    "h": 321.7
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#7A2C87
secondary
#69B25D
accent
#DA4D62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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