#7E2082#7E2082

#7E2082 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.171 H 326.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7E2082
RGBrgb(126, 32, 130)
HSLhsl(298, 60%, 32%)
HSVhsv(298, 75%, 51%)
CMYKcmyk(3.1%, 75.4%, 0%, 49%)
CIE-LABlab(31.99, 51.74, -34.24)
CIE-LCHlch(31.99, 62.05, 326.51°)
OKLaboklab(43.63% 0.1423 -0.0951)
OKLCHoklch(43.63% 0.171 326.2)
XYZxyz(13.1497, 7.0812, 21.7890)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2082 #248220
analogous
#4D2082 #7E2082 #822055
triadic
#7E2082 #827E20 #20827E
tetradic
#7E2082 #824D20 #248220 #205582
square
#7E2082 #824D20 #248220 #205582
split-complementary
#7E2082 #558220 #20824D
monochromatic
#1F0820 #4E1451 #7E2082 #AE2CB3 #CD4AD2

Accessibility & contrast

On white

8.69
#7E2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2082
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2082#FFFFFF#000000##FFFFFF
##7E20821.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044485
Deuteranopia (green-blind)
#374F80
Tritanopia (blue-blind)
#81304F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2082;
/* rgb */ color: rgb(126, 32, 130);
/* oklch */ color: oklch(43.6% 0.171 326.2);
Tailwind
colors: {
  custom: {
    50: '#a766a7',
    500: '#7e2082',
    950: '#000000',
  },
}
SCSS
$custom: #7e2082;
$custom-light: #a766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2082",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 297.551,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43625,
    "c": 0.17121,
    "h": 326.2
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#7E2082
secondary
#4EB549
accent
#E4444B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2082

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

Preview Lab → · Contrast checker → · Palette generator →

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