#7B20B3#7B20B3

#7B20B3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.213 H 307.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7B20B3
RGBrgb(123, 32, 179)
HSLhsl(277, 70%, 41%)
HSVhsv(277, 82%, 70%)
CMYKcmyk(31.3%, 82.1%, 0%, 29.8%)
CIE-LABlab(35.00, 60.88, -59.25)
CIE-LCHlch(35.00, 84.95, 315.78°)
OKLaboklab(46.75% 0.1305 -0.1686)
OKLCHoklch(46.75% 0.213 307.8)
XYZxyz(16.8198, 8.4989, 43.3935)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20B3 #58B320
analogous
#3220B3 #7B20B3 #B320A2
triadic
#7B20B3 #B37B20 #20B37B
tetradic
#7B20B3 #B33220 #58B320 #20A2B3
square
#7B20B3 #B33220 #58B320 #20A2B3
split-complementary
#7B20B3 #A2B320 #20B332
monochromatic
#340D4B #57177F #7B20B3 #9C35DB #B569E4

Accessibility & contrast

On white

7.78
#7B20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B20B3
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20B3#FFFFFF#000000##FFFFFF
##7B20B31.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#72486B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b20b3;
/* rgb */ color: rgb(123, 32, 179);
/* oklch */ color: oklch(46.8% 0.213 307.8);
Tailwind
colors: {
  custom: {
    50: '#a768cb',
    500: '#7b20b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b20b3;
$custom-light: #a768cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20b3",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 277.143,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.21321,
    "h": 307.8
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#7B20B3
secondary
#8BCA65
accent
#EC3B7F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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