#7E20BC#7E20BC

#7E20BC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.222 H 306.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E20BC
RGBrgb(126, 32, 188)
HSLhsl(276, 71%, 43%)
HSVhsv(276, 83%, 74%)
CMYKcmyk(33%, 83%, 0%, 26.3%)
CIE-LABlab(36.18, 63.27, -62.64)
CIE-LCHlch(36.18, 89.04, 315.29°)
OKLaboklab(47.89% 0.1322 -0.1784)
OKLCHoklch(47.89% 0.222 306.5)
XYZxyz(18.1958, 9.0997, 48.3650)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20BC #5EBC20
analogous
#3020BC #7E20BC #BC20AC
triadic
#7E20BC #BC7E20 #20BC7E
tetradic
#7E20BC #BC3020 #5EBC20 #20ACBC
square
#7E20BC #BC3020 #5EBC20 #20ACBC
split-complementary
#7E20BC #ACBC20 #20BC30
monochromatic
#380E53 #5B1788 #7E20BC #9D3BDE #B770E7

Accessibility & contrast

On white

7.45
#7E20BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E20BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20BC
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20BC#FFFFFF#000000##FFFFFF
##7E20BC1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#734B71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e20bc;
/* rgb */ color: rgb(126, 32, 188);
/* oklch */ color: oklch(47.9% 0.222 306.5);
Tailwind
colors: {
  custom: {
    50: '#aa69d1',
    500: '#7e20bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e20bc;
$custom-light: #aa69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20bc",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 276.154,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.22205,
    "h": 306.5
  },
  "luminance": 0.09099
}

Semantic roles & 50–950 ramp

primary
#7E20BC
secondary
#92CD6B
accent
#EE3A81
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7E20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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