#7B15B4#7B15B4

#7B15B4 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 46.1% C 0.222 H 308.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7B15B4
RGBrgb(123, 21, 180)
HSLhsl(278, 79%, 39%)
HSVhsv(278, 88%, 71%)
CMYKcmyk(31.7%, 88.3%, 0%, 29.4%)
CIE-LABlab(34.07, 64.07, -61.36)
CIE-LCHlch(34.07, 88.71, 316.24°)
OKLaboklab(46.13% 0.1369 -0.1747)
OKLCHoklch(46.13% 0.222 308.1)
XYZxyz(16.6730, 8.0428, 43.8453)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B15B4 #4EB415
analogous
#2C15B4 #7B15B4 #B4159D
triadic
#7B15B4 #B47B15 #15B47B
tetradic
#7B15B4 #B42C15 #4EB415 #159DB4
square
#7B15B4 #B42C15 #4EB415 #159DB4
split-complementary
#7B15B4 #9DB415 #15B42C
monochromatic
#300846 #560F7D #7B15B4 #9F21E5 #B758EC

Accessibility & contrast

On white

8.05
#7B15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7B15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B15B4
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B15B4#FFFFFF#000000##FFFFFF
##7B15B41.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#71456A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b15b4;
/* rgb */ color: rgb(123, 21, 180);
/* oklch */ color: oklch(46.1% 0.222 308.1);
Tailwind
colors: {
  custom: {
    50: '#a765cc',
    500: '#7b15b4',
    950: '#000000',
  },
}
SCSS
$custom: #7b15b4;
$custom-light: #a765cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b15b4",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 278.491,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46133,
    "c": 0.22196,
    "h": 308.1
  },
  "luminance": 0.08043
}

Semantic roles & 50–950 ramp

primary
#7B15B4
secondary
#81CF56
accent
#F63278
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7B15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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