#7E2A85#7E2A85

#7E2A85 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.161 H 324.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2A85
RGBrgb(126, 42, 133)
HSLhsl(295, 52%, 34%)
HSVhsv(295, 68%, 52%)
CMYKcmyk(5.3%, 68.4%, 0%, 47.8%)
CIE-LABlab(33.53, 48.43, -33.66)
CIE-LCHlch(33.53, 58.98, 325.21°)
OKLaboklab(44.79% 0.1316 -0.0935)
OKLCHoklch(44.79% 0.161 324.6)
XYZxyz(13.6654, 7.7858, 22.9688)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A85 #31852A
analogous
#512A85 #7E2A85 #852A5F
triadic
#7E2A85 #857E2A #2A857E
tetradic
#7E2A85 #85512A #31852A #2A5F85
square
#7E2A85 #85512A #31852A #2A5F85
split-complementary
#7E2A85 #5F852A #2A8551
monochromatic
#260D28 #521B56 #7E2A85 #AA39B4 #C35DCC

Accessibility & contrast

On white

8.21
#7E2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A85
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A85#FFFFFF#000000##FFFFFF
##7E2A851.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164888
Deuteranopia (green-blind)
#3B5283
Tritanopia (blue-blind)
#813854
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2a85;
/* rgb */ color: rgb(126, 42, 133);
/* oklch */ color: oklch(44.8% 0.161 324.6);
Tailwind
colors: {
  custom: {
    50: '#a66ba9',
    500: '#7e2a85',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a85;
$custom-light: #a66ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a85",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 295.385,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44788,
    "c": 0.16144,
    "h": 324.6
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#7E2A85
secondary
#60B259
accent
#DB4C57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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