#7815B3#7815B3

#7815B3 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.6% C 0.220 H 307.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7815B3
RGBrgb(120, 21, 179)
HSLhsl(278, 79%, 39%)
HSVhsv(278, 88%, 70%)
CMYKcmyk(33%, 88.3%, 0%, 29.8%)
CIE-LABlab(33.53, 63.44, -61.67)
CIE-LCHlch(33.53, 88.47, 315.81°)
OKLaboklab(45.64% 0.1331 -0.1757)
OKLCHoklch(45.64% 0.22 307.1)
XYZxyz(16.1488, 7.7843, 43.2909)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7815B3 #50B315
analogous
#2915B3 #7815B3 #B3159F
triadic
#7815B3 #B37815 #15B378
tetradic
#7815B3 #B32915 #50B315 #159FB3
square
#7815B3 #B32915 #50B315 #159FB3
split-complementary
#7815B3 #9FB315 #15B329
monochromatic
#2F0845 #530F7C #7815B3 #9B20E5 #B457EB

Accessibility & contrast

On white

8.21
#7815B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7815B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7815B3
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7815B3#FFFFFF#000000##FFFFFF
##7815B31.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#6E456A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7815b3;
/* rgb */ color: rgb(120, 21, 179);
/* oklch */ color: oklch(45.6% 0.220 307.1);
Tailwind
colors: {
  custom: {
    50: '#a564cb',
    500: '#7815b3',
    950: '#000000',
  },
}
SCSS
$custom: #7815b3;
$custom-light: #a564cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7815b3",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 277.595,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45641,
    "c": 0.22041,
    "h": 307.1
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#7815B3
secondary
#83CE56
accent
#F5327B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7815B3

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

Preview Lab → · Contrast checker → · Palette generator →

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