#7A15B3#7A15B3

#7A15B3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.9% C 0.221 H 308.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7A15B3
RGBrgb(122, 21, 179)
HSLhsl(278, 79%, 39%)
HSVhsv(278, 88%, 70%)
CMYKcmyk(31.8%, 88.3%, 0%, 29.8%)
CIE-LABlab(33.83, 63.72, -61.16)
CIE-LCHlch(33.83, 88.32, 316.18°)
OKLaboklab(45.91% 0.1359 -0.1741)
OKLCHoklch(45.91% 0.221 308)
XYZxyz(16.4292, 7.9288, 43.3040)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A15B3 #4EB315
analogous
#2B15B3 #7A15B3 #B3159D
triadic
#7A15B3 #B37A15 #15B37A
tetradic
#7A15B3 #B32B15 #4EB315 #159DB3
square
#7A15B3 #B32B15 #4EB315 #159DB3
split-complementary
#7A15B3 #9DB315 #15B32B
monochromatic
#2F0845 #550F7C #7A15B3 #9E20E5 #B657EB

Accessibility & contrast

On white

8.12
#7A15B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7A15B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A15B3
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A15B3#FFFFFF#000000##FFFFFF
##7A15B31.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#70446A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7a15b3;
/* rgb */ color: rgb(122, 21, 179);
/* oklch */ color: oklch(45.9% 0.221 308.0);
Tailwind
colors: {
  custom: {
    50: '#a764cb',
    500: '#7a15b3',
    950: '#000000',
  },
}
SCSS
$custom: #7a15b3;
$custom-light: #a764cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a15b3",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 278.354,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.22087,
    "h": 308
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#7A15B3
secondary
#81CE56
accent
#F53279
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7A15B3

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

Preview Lab → · Contrast checker → · Palette generator →

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