#7815B4#7815B4

#7815B4 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.7% C 0.221 H 306.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7815B4
RGBrgb(120, 21, 180)
HSLhsl(277, 79%, 39%)
HSVhsv(277, 88%, 71%)
CMYKcmyk(33.3%, 88.3%, 0%, 29.4%)
CIE-LABlab(33.62, 63.65, -62.12)
CIE-LCHlch(33.62, 88.94, 315.69°)
OKLaboklab(45.73% 0.1327 -0.177)
OKLCHoklch(45.73% 0.221 306.9)
XYZxyz(16.2503, 7.8249, 43.8254)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7815B4 #51B415
analogous
#2815B4 #7815B4 #B415A1
triadic
#7815B4 #B47815 #15B478
tetradic
#7815B4 #B42815 #51B415 #15A1B4
square
#7815B4 #B42815 #51B415 #15A1B4
split-complementary
#7815B4 #A1B415 #15B428
monochromatic
#2F0846 #530F7D #7815B4 #9B21E5 #B458EC

Accessibility & contrast

On white

8.19
#7815B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7815B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7815B4
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7815B4#FFFFFF#000000##FFFFFF
##7815B41.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#6D456A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7815b4;
/* rgb */ color: rgb(120, 21, 180);
/* oklch */ color: oklch(45.7% 0.221 306.9);
Tailwind
colors: {
  custom: {
    50: '#a564cc',
    500: '#7815b4',
    950: '#000000',
  },
}
SCSS
$custom: #7815b4;
$custom-light: #a564cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7815b4",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 277.358,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45726,
    "c": 0.22126,
    "h": 306.9
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#7815B4
secondary
#84CF56
accent
#F6327C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7815B4

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

Preview Lab → · Contrast checker → · Palette generator →

#7815B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva