#7E207C#7E207C

#7E207C is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.166 H 328.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E207C
RGBrgb(126, 32, 124)
HSLhsl(301, 59%, 31%)
HSVhsv(301, 75%, 49%)
CMYKcmyk(0%, 74.6%, 1.6%, 50.6%)
CIE-LABlab(31.64, 50.69, -31.05)
CIE-LCHlch(31.64, 59.44, 328.51°)
OKLaboklab(43.26% 0.1424 -0.0859)
OKLCHoklch(43.26% 0.166 328.9)
XYZxyz(12.7587, 6.9248, 19.7295)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E207C #207E22
analogous
#51207E #7E207C #7E204D
triadic
#7E207C #7C7E20 #207C7E
tetradic
#7E207C #7E5120 #207E22 #204D7E
square
#7E207C #7E5120 #207E22 #204D7E
split-complementary
#7E207C #4D7E20 #207E51
monochromatic
#1C071C #4D144C #7E207C #AF2CAC #D048CE

Accessibility & contrast

On white

8.81
#7E207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E207C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E207C#FFFFFF#000000##FFFFFF
##7E207C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#822E4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e207c;
/* rgb */ color: rgb(126, 32, 124);
/* oklch */ color: oklch(43.3% 0.166 328.9);
Tailwind
colors: {
  custom: {
    50: '#a766a2',
    500: '#7e207c',
    950: '#000000',
  },
}
SCSS
$custom: #7e207c;
$custom-light: #a766a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e207c",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 301.277,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43255,
    "c": 0.16626,
    "h": 328.9
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#7E207C
secondary
#49B14B
accent
#E34845
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E207C

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

Preview Lab → · Contrast checker → · Palette generator →

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