#7C20BB#7C20BB

#7C20BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.221 H 306.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7C20BB
RGBrgb(124, 32, 187)
HSLhsl(276, 71%, 43%)
HSVhsv(276, 83%, 73%)
CMYKcmyk(33.7%, 82.9%, 0%, 26.7%)
CIE-LABlab(35.80, 62.76, -62.67)
CIE-LCHlch(35.80, 88.69, 315.04°)
OKLaboklab(47.54% 0.1296 -0.1786)
OKLCHoklch(47.54% 0.221 306)
XYZxyz(17.7963, 8.9061, 47.7856)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C20BB #5FBB20
analogous
#2F20BB #7C20BB #BB20AC
triadic
#7C20BB #BB7C20 #20BB7C
tetradic
#7C20BB #BB2F20 #5FBB20 #20ACBB
square
#7C20BB #BB2F20 #5FBB20 #20ACBB
split-complementary
#7C20BB #ACBB20 #20BB2F
monochromatic
#370E52 #591787 #7C20BB #9B3BDD #B66FE6

Accessibility & contrast

On white

7.55
#7C20BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C20BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C20BB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C20BB#FFFFFF#000000##FFFFFF
##7C20BB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#704B70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c20bb;
/* rgb */ color: rgb(124, 32, 187);
/* oklch */ color: oklch(47.5% 0.221 306.0);
Tailwind
colors: {
  custom: {
    50: '#a869d0',
    500: '#7c20bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c20bb;
$custom-light: #a869d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c20bb",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 275.613,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47541,
    "c": 0.22069,
    "h": 306
  },
  "luminance": 0.08906
}

Semantic roles & 50–950 ramp

primary
#7C20BB
secondary
#92CD6A
accent
#EE3A83
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7C20BB

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

Preview Lab → · Contrast checker → · Palette generator →

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