#7E20B3#7E20B3

#7E20B3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.2% C 0.214 H 309.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7E20B3
RGBrgb(126, 32, 179)
HSLhsl(278, 70%, 41%)
HSVhsv(278, 82%, 70%)
CMYKcmyk(29.6%, 82.1%, 0%, 29.8%)
CIE-LABlab(35.45, 61.37, -58.50)
CIE-LCHlch(35.45, 84.78, 316.37°)
OKLaboklab(47.15% 0.1347 -0.1663)
OKLCHoklch(47.15% 0.214 309)
XYZxyz(17.2557, 8.7236, 43.4139)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E20B3 #55B320
analogous
#3420B3 #7E20B3 #B3209F
triadic
#7E20B3 #B37E20 #20B37E
tetradic
#7E20B3 #B33420 #55B320 #209FB3
square
#7E20B3 #B33420 #55B320 #209FB3
split-complementary
#7E20B3 #9FB320 #20B334
monochromatic
#350D4B #59177F #7E20B3 #9F35DB #B869E4

Accessibility & contrast

On white

7.65
#7E20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7E20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E20B3
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E20B3#FFFFFF#000000##FFFFFF
##7E20B31.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#76476B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e20b3;
/* rgb */ color: rgb(126, 32, 179);
/* oklch */ color: oklch(47.2% 0.214 309.0);
Tailwind
colors: {
  custom: {
    50: '#a969cb',
    500: '#7e20b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e20b3;
$custom-light: #a969cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e20b3",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 278.367,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47153,
    "c": 0.21397,
    "h": 309
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#7E20B3
secondary
#89CA65
accent
#EC3B7B
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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