#7A2E88#7A2E88

#7A2E88 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.157 H 321.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7A2E88
RGBrgb(122, 46, 136)
HSLhsl(291, 49%, 36%)
HSVhsv(291, 66%, 53%)
CMYKcmyk(10.3%, 66.2%, 0%, 46.7%)
CIE-LABlab(33.71, 46.26, -35.27)
CIE-LCHlch(33.71, 58.17, 322.68°)
OKLaboklab(44.85% 0.1219 -0.0984)
OKLCHoklch(44.85% 0.157 321.1)
XYZxyz(13.4465, 7.8698, 24.0985)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E88 #3C882E
analogous
#4D2E88 #7A2E88 #882E69
triadic
#7A2E88 #887A2E #2E887A
tetradic
#7A2E88 #884D2E #3C882E #2E6988
square
#7A2E88 #884D2E #3C882E #2E6988
split-complementary
#7A2E88 #69882E #2E884D
monochromatic
#280F2D #511F5A #7A2E88 #A33DB6 #BB65CB

Accessibility & contrast

On white

8.16
#7A2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A2E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E88
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E88#FFFFFF#000000##FFFFFF
##7A2E881.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164A8B
Deuteranopia (green-blind)
#385286
Tritanopia (blue-blind)
#7B3D57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2e88;
/* rgb */ color: rgb(122, 46, 136);
/* oklch */ color: oklch(44.8% 0.157 321.1);
Tailwind
colors: {
  custom: {
    50: '#a36dab',
    500: '#7a2e88',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e88;
$custom-light: #a36dab;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e88",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 290.667,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44846,
    "c": 0.15665,
    "h": 321.1
  },
  "luminance": 0.07869
}

Semantic roles & 50–950 ramp

primary
#7A2E88
secondary
#6DB260
accent
#D94F64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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