#7E20BB#7E20BB

#7E20BB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.221 H 306.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7E20BB
RGBrgb(126, 32, 187)
HSLhsl(276, 71%, 43%)
HSVhsv(276, 83%, 73%)
CMYKcmyk(32.6%, 82.9%, 0%, 26.7%)
CIE-LABlab(36.09, 63.06, -62.19)
CIE-LCHlch(36.09, 88.57, 315.40°)
OKLaboklab(47.8% 0.1325 -0.1771)
OKLCHoklch(47.8% 0.221 306.8)
XYZxyz(18.0884, 9.0567, 47.7993)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20BB #5DBB20
analogous
#3020BB #7E20BB #BB20AA
triadic
#7E20BB #BB7E20 #20BB7E
tetradic
#7E20BB #BB3020 #5DBB20 #20AABB
square
#7E20BB #BB3020 #5DBB20 #20AABB
split-complementary
#7E20BB #AABB20 #20BB30
monochromatic
#380E52 #5B1787 #7E20BB #9D3BDD #B76FE6

Accessibility & contrast

On white

7.47
#7E20BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E20BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20BB
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20BB#FFFFFF#000000##FFFFFF
##7E20BB1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#734B70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e20bb;
/* rgb */ color: rgb(126, 32, 187);
/* oklch */ color: oklch(47.8% 0.221 306.8);
Tailwind
colors: {
  custom: {
    50: '#aa69d0',
    500: '#7e20bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e20bb;
$custom-light: #aa69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20bb",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 276.387,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.22115,
    "h": 306.8
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#7E20BB
secondary
#91CD6A
accent
#EE3A81
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E20BB

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

Preview Lab → · Contrast checker → · Palette generator →

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