#7B20BD#7B20BD

#7B20BD is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.6% C 0.222 H 305.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B20BD
RGBrgb(123, 32, 189)
HSLhsl(275, 71%, 43%)
HSVhsv(275, 83%, 74%)
CMYKcmyk(34.9%, 83.1%, 0%, 25.9%)
CIE-LABlab(35.83, 63.04, -63.82)
CIE-LCHlch(35.83, 89.70, 314.65°)
OKLaboklab(47.58% 0.1276 -0.182)
OKLCHoklch(47.58% 0.222 305)
XYZxyz(17.8681, 8.9182, 48.9143)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B20BD #62BD20
analogous
#2C20BD #7B20BD #BD20B0
triadic
#7B20BD #BD7B20 #20BD7B
tetradic
#7B20BD #BD2C20 #62BD20 #20B0BD
square
#7B20BD #BD2C20 #62BD20 #20B0BD
split-complementary
#7B20BD #B0BD20 #20BD2C
monochromatic
#370E54 #591789 #7B20BD #9A3CDE #B571E7

Accessibility & contrast

On white

7.54
#7B20BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B20BD
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B20BD#FFFFFF#000000##FFFFFF
##7B20BD1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#6E4C71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b20bd;
/* rgb */ color: rgb(123, 32, 189);
/* oklch */ color: oklch(47.6% 0.222 305.0);
Tailwind
colors: {
  custom: {
    50: '#a869d2',
    500: '#7b20bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b20bd;
$custom-light: #a869d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b20bd",
  "rgb": {
    "r": 123,
    "g": 32,
    "b": 189
  },
  "hsl": {
    "h": 274.777,
    "s": 71.041,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47579,
    "c": 0.2223,
    "h": 305
  },
  "luminance": 0.08918
}

Semantic roles & 50–950 ramp

primary
#7B20BD
secondary
#95CD6B
accent
#EE3A86
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7B20BD

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

Preview Lab → · Contrast checker → · Palette generator →

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