#7F20BB#7F20BB

#7F20BB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.221 H 307.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7F20BB
RGBrgb(127, 32, 187)
HSLhsl(277, 71%, 43%)
HSVhsv(277, 83%, 73%)
CMYKcmyk(32.1%, 82.9%, 0%, 26.7%)
CIE-LABlab(36.24, 63.22, -61.94)
CIE-LCHlch(36.24, 88.50, 315.58°)
OKLaboklab(47.93% 0.1338 -0.1763)
OKLCHoklch(47.93% 0.221 307.2)
XYZxyz(18.2366, 9.1331, 47.8062)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F20BB #5CBB20
analogous
#3120BB #7F20BB #BB20A9
triadic
#7F20BB #BB7F20 #20BB7F
tetradic
#7F20BB #BB3120 #5CBB20 #20A9BB
square
#7F20BB #BB3120 #5CBB20 #20A9BB
split-complementary
#7F20BB #A9BB20 #20BB31
monochromatic
#380E52 #5C1787 #7F20BB #9E3BDD #B86FE6

Accessibility & contrast

On white

7.43
#7F20BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F20BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F20BB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F20BB#FFFFFF#000000##FFFFFF
##7F20BB1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#754B70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f20bb;
/* rgb */ color: rgb(127, 32, 187);
/* oklch */ color: oklch(47.9% 0.221 307.2);
Tailwind
colors: {
  custom: {
    50: '#aa69d0',
    500: '#7f20bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f20bb;
$custom-light: #aa69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f20bb",
  "rgb": {
    "r": 127,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 276.774,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47934,
    "c": 0.22138,
    "h": 307.2
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

primary
#7F20BB
secondary
#90CD6A
accent
#EE3A80
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7F20BB

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

Preview Lab → · Contrast checker → · Palette generator →

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