#7F20BC#7F20BC

#7F20BC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.222 H 306.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7F20BC
RGBrgb(127, 32, 188)
HSLhsl(277, 71%, 43%)
HSVhsv(277, 83%, 74%)
CMYKcmyk(32.4%, 83%, 0%, 26.3%)
CIE-LABlab(36.32, 63.43, -62.40)
CIE-LCHlch(36.32, 88.97, 315.47°)
OKLaboklab(48.02% 0.1336 -0.1777)
OKLCHoklch(48.02% 0.222 306.9)
XYZxyz(18.3440, 9.1761, 48.3720)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20BC #5DBC20
analogous
#3120BC #7F20BC #BC20AB
triadic
#7F20BC #BC7F20 #20BC7F
tetradic
#7F20BC #BC3120 #5DBC20 #20ABBC
square
#7F20BC #BC3120 #5DBC20 #20ABBC
split-complementary
#7F20BC #ABBC20 #20BC31
monochromatic
#380E53 #5C1788 #7F20BC #9E3BDE #B870E7

Accessibility & contrast

On white

7.41
#7F20BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7F20BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F20BC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F20BC#FFFFFF#000000##FFFFFF
##7F20BC1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#744B71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f20bc;
/* rgb */ color: rgb(127, 32, 188);
/* oklch */ color: oklch(48.0% 0.222 306.9);
Tailwind
colors: {
  custom: {
    50: '#aa69d1',
    500: '#7f20bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f20bc;
$custom-light: #aa69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20bc",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 276.538,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.22228,
    "h": 306.9
  },
  "luminance": 0.09176
}

Semantic roles & 50–950 ramp

primary
#7F20BC
secondary
#91CD6B
accent
#EE3A80
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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