#7818C9#7818C9

#7818C9 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.7% C 0.238 H 301.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7818C9
RGBrgb(120, 24, 201)
HSLhsl(273, 79%, 44%)
HSVhsv(273, 88%, 79%)
CMYKcmyk(40.3%, 88.1%, 0%, 21.2%)
CIE-LABlab(35.72, 67.42, -71.05)
CIE-LCHlch(35.72, 97.95, 313.50°)
OKLaboklab(47.74% 0.1237 -0.2032)
OKLCHoklch(47.74% 0.238 301.3)
XYZxyz(18.6124, 8.8632, 55.9772)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7818C9 #69C918
analogous
#1F18C9 #7818C9 #C918C2
triadic
#7818C9 #C97818 #18C978
tetradic
#7818C9 #C91F18 #69C918 #18C2C9
square
#7818C9 #C91F18 #69C918 #18C2C9
split-complementary
#7818C9 #C2C918 #18C91F
monochromatic
#370B5C #571192 #7818C9 #9737E7 #B36EEE

Accessibility & contrast

On white

7.57
#7818C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7818C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7818C9
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7818C9#FFFFFF#000000##FFFFFF
##7818C91.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CD
Deuteranopia (green-blind)
#0053C6
Tritanopia (blue-blind)
#655077
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7818c9;
/* rgb */ color: rgb(120, 24, 201);
/* oklch */ color: oklch(47.7% 0.238 301.3);
Tailwind
colors: {
  custom: {
    50: '#a766db',
    500: '#7818c9',
    950: '#000000',
  },
}
SCSS
$custom: #7818c9;
$custom-light: #a766db;
$custom-dark: #000000;
JSON
{
  "hex": "#7818c9",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 272.542,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.23792,
    "h": 301.3
  },
  "luminance": 0.08863
}

Semantic roles & 50–950 ramp

primary
#7818C9
secondary
#9AD469
accent
#F5338C
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7818C9

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

Preview Lab → · Contrast checker → · Palette generator →

#7818C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva