#7A18C9#7A18C9

#7A18C9 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 48.0% C 0.238 H 302.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7A18C9
RGBrgb(122, 24, 201)
HSLhsl(273, 79%, 44%)
HSVhsv(273, 88%, 79%)
CMYKcmyk(39.3%, 88.1%, 0%, 21.2%)
CIE-LABlab(36.00, 67.67, -70.58)
CIE-LCHlch(36.00, 97.78, 313.79°)
OKLaboklab(47.99% 0.1266 -0.2018)
OKLCHoklch(47.99% 0.238 302.1)
XYZxyz(18.8927, 9.0078, 55.9904)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A18C9 #67C918
analogous
#2118C9 #7A18C9 #C918C0
triadic
#7A18C9 #C97A18 #18C97A
tetradic
#7A18C9 #C92118 #67C918 #18C0C9
square
#7A18C9 #C92118 #67C918 #18C0C9
split-complementary
#7A18C9 #C0C918 #18C921
monochromatic
#380B5C #591192 #7A18C9 #9937E7 #B56EEE

Accessibility & contrast

On white

7.50
#7A18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A18C9
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A18C9#FFFFFF#000000##FFFFFF
##7A18C91.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CD
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#685077
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a18c9;
/* rgb */ color: rgb(122, 24, 201);
/* oklch */ color: oklch(48.0% 0.238 302.1);
Tailwind
colors: {
  custom: {
    50: '#a867db',
    500: '#7a18c9',
    950: '#000000',
  },
}
SCSS
$custom: #7a18c9;
$custom-light: #a867db;
$custom-dark: #000000;
JSON
{
  "hex": "#7a18c9",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 273.22,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47989,
    "c": 0.23825,
    "h": 302.1
  },
  "luminance": 0.09008
}

Semantic roles & 50–950 ramp

primary
#7A18C9
secondary
#99D469
accent
#F53389
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7A18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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