#7A18B4#7A18B4

#7A18B4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.2% C 0.220 H 307.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7A18B4
RGBrgb(122, 24, 180)
HSLhsl(278, 76%, 40%)
HSVhsv(278, 87%, 71%)
CMYKcmyk(32.2%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.16, 63.21, -61.22)
CIE-LCHlch(34.16, 87.99, 315.92°)
OKLaboklab(46.17% 0.1339 -0.1743)
OKLCHoklch(46.17% 0.22 307.5)
XYZxyz(16.5891, 8.0864, 43.8581)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A18B4 #52B418
analogous
#2C18B4 #7A18B4 #B418A0
triadic
#7A18B4 #B47A18 #18B47A
tetradic
#7A18B4 #B42C18 #52B418 #18A0B4
square
#7A18B4 #B42C18 #52B418 #18A0B4
split-complementary
#7A18B4 #A0B418 #18B42C
monochromatic
#310A48 #55117E #7A18B4 #9D27E2 #B55DE9

Accessibility & contrast

On white

8.02
#7A18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7A18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A18B4
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A18B4#FFFFFF#000000##FFFFFF
##7A18B41.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a18b4;
/* rgb */ color: rgb(122, 24, 180);
/* oklch */ color: oklch(46.2% 0.220 307.5);
Tailwind
colors: {
  custom: {
    50: '#a765cb',
    500: '#7a18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7a18b4;
$custom-light: #a765cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a18b4",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 277.692,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46165,
    "c": 0.21984,
    "h": 307.5
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#7A18B4
secondary
#85CD5B
accent
#F3357C
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7A18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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