#7E15B4#7E15B4

#7E15B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.5% C 0.223 H 309.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7E15B4
RGBrgb(126, 21, 180)
HSLhsl(280, 79%, 39%)
HSVhsv(280, 88%, 71%)
CMYKcmyk(30%, 88.3%, 0%, 29.4%)
CIE-LABlab(34.53, 64.49, -60.59)
CIE-LCHlch(34.53, 88.49, 316.79°)
OKLaboklab(46.54% 0.1411 -0.1723)
OKLCHoklch(46.54% 0.223 309.3)
XYZxyz(17.1089, 8.2676, 43.8657)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E15B4 #4BB415
analogous
#2F15B4 #7E15B4 #B4159A
triadic
#7E15B4 #B47E15 #15B47E
tetradic
#7E15B4 #B42F15 #4BB415 #159AB4
square
#7E15B4 #B42F15 #4BB415 #159AB4
split-complementary
#7E15B4 #9AB415 #15B42F
monochromatic
#310846 #580F7D #7E15B4 #A321E5 #B958EC

Accessibility & contrast

On white

7.91
#7E15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E15B4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E15B4#FFFFFF#000000##FFFFFF
##7E15B41.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#76446A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e15b4;
/* rgb */ color: rgb(126, 21, 180);
/* oklch */ color: oklch(46.5% 0.223 309.3);
Tailwind
colors: {
  custom: {
    50: '#a965cb',
    500: '#7e15b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e15b4;
$custom-light: #a965cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e15b4",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 279.623,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46545,
    "c": 0.22271,
    "h": 309.3
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#7E15B4
secondary
#7FCF56
accent
#F63275
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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