#7B20C4#7B20C4

#7B20C4 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.2% C 0.229 H 303.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7B20C4
RGBrgb(123, 32, 196)
HSLhsl(273, 72%, 45%)
HSVhsv(273, 84%, 77%)
CMYKcmyk(37.2%, 83.7%, 0%, 23.1%)
CIE-LABlab(36.42, 64.57, -66.96)
CIE-LCHlch(36.42, 93.02, 313.96°)
OKLaboklab(48.18% 0.1254 -0.1912)
OKLCHoklch(48.18% 0.229 303.3)
XYZxyz(18.6463, 9.2295, 53.0130)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20C4 #69C420
analogous
#2920C4 #7B20C4 #C420BB
triadic
#7B20C4 #C47B20 #20C47B
tetradic
#7B20C4 #C42920 #69C420 #20BBC4
square
#7B20C4 #C42920 #69C420 #20BBC4
split-complementary
#7B20C4 #BBC420 #20C429
monochromatic
#390F5B #5A178F #7B20C4 #9941E0 #B676E9

Accessibility & contrast

On white

7.38
#7B20C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7B20C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B20C4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20C4#FFFFFF#000000##FFFFFF
##7B20C41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#6C5075
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b20c4;
/* rgb */ color: rgb(123, 32, 196);
/* oklch */ color: oklch(48.2% 0.229 303.3);
Tailwind
colors: {
  custom: {
    50: '#a869d7',
    500: '#7b20c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b20c4;
$custom-light: #a869d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20c4",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 196
  },
  "hsl": {
    "h": 273.293,
    "s": 71.93,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.22868,
    "h": 303.3
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#7B20C4
secondary
#9BD070
accent
#EF398A
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110715
muted
#807A83

Preview Lab

Preview with #7B20C4

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

Preview Lab → · Contrast checker → · Palette generator →

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