#7E207B#7E207B

#7E207B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.165 H 329.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E207B
RGBrgb(126, 32, 123)
HSLhsl(302, 59%, 31%)
HSVhsv(302, 75%, 49%)
CMYKcmyk(0%, 74.6%, 2.4%, 50.6%)
CIE-LABlab(31.58, 50.51, -30.51)
CIE-LCHlch(31.58, 59.01, 328.87°)
OKLaboklab(43.2% 0.1424 -0.0843)
OKLCHoklch(43.2% 0.165 329.4)
XYZxyz(12.6958, 6.8997, 19.3981)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E207B #207E23
analogous
#52207E #7E207B #7E204C
triadic
#7E207B #7B7E20 #207B7E
tetradic
#7E207B #7E5220 #207E23 #204C7E
square
#7E207B #7E5220 #207E23 #204C7E
split-complementary
#7E207B #4C7E20 #207E52
monochromatic
#1C071C #4D144B #7E207B #AF2CAB #D048CC

Accessibility & contrast

On white

8.82
#7E207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E207B
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E207B#FFFFFF#000000##FFFFFF
##7E207B1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427E
Deuteranopia (green-blind)
#3B4F79
Tritanopia (blue-blind)
#832D4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e207b;
/* rgb */ color: rgb(126, 32, 123);
/* oklch */ color: oklch(43.2% 0.165 329.4);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7e207b',
    950: '#000000',
  },
}
SCSS
$custom: #7e207b;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e207b",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 301.915,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43195,
    "c": 0.16545,
    "h": 329.4
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#7E207B
secondary
#49B14C
accent
#E34A45
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E207B

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

Preview Lab → · Contrast checker → · Palette generator →

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