#7C20B0#7C20B0

#7C20B0 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.211 H 309.0°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7C20B0
RGBrgb(124, 32, 176)
HSLhsl(278, 69%, 41%)
HSVhsv(278, 82%, 69%)
CMYKcmyk(29.5%, 81.8%, 0%, 31%)
CIE-LABlab(34.91, 60.41, -57.61)
CIE-LCHlch(34.91, 83.47, 316.36°)
OKLaboklab(46.64% 0.1327 -0.1637)
OKLCHoklch(46.64% 0.211 309)
XYZxyz(16.6636, 8.4530, 41.8196)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C20B0 #54B020
analogous
#3420B0 #7C20B0 #B0209C
triadic
#7C20B0 #B07C20 #20B07C
tetradic
#7C20B0 #B03420 #54B020 #209CB0
square
#7C20B0 #B03420 #54B020 #209CB0
split-complementary
#7C20B0 #9CB020 #20B034
monochromatic
#330D48 #58177C #7C20B0 #9E33DA #B667E3

Accessibility & contrast

On white

7.80
#7C20B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C20B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C20B0
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C20B0#FFFFFF#000000##FFFFFF
##7C20B01.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#74466A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c20b0;
/* rgb */ color: rgb(124, 32, 176);
/* oklch */ color: oklch(46.6% 0.211 309.0);
Tailwind
colors: {
  custom: {
    50: '#a768c9',
    500: '#7c20b0',
    950: '#000000',
  },
}
SCSS
$custom: #7c20b0;
$custom-light: #a768c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c20b0",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 176
  },
  "hsl": {
    "h": 278.333,
    "s": 69.231,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46643,
    "c": 0.21075,
    "h": 309
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#7C20B0
secondary
#88C963
accent
#EC3C7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C20B0

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

Preview Lab → · Contrast checker → · Palette generator →

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