#7818B3#7818B3

#7818B3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.8% C 0.218 H 307.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7818B3
RGBrgb(120, 24, 179)
HSLhsl(277, 76%, 40%)
HSVhsv(277, 87%, 70%)
CMYKcmyk(33%, 86.6%, 0%, 29.8%)
CIE-LABlab(33.78, 62.71, -61.27)
CIE-LCHlch(33.78, 87.67, 315.67°)
OKLaboklab(45.81% 0.1315 -0.1745)
OKLCHoklch(45.81% 0.219 307)
XYZxyz(16.2073, 7.9012, 43.3104)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7818B3 #53B318
analogous
#2A18B3 #7818B3 #B318A1
triadic
#7818B3 #B37818 #18B378
tetradic
#7818B3 #B32A18 #53B318 #18A1B3
square
#7818B3 #B32A18 #53B318 #18A1B3
split-complementary
#7818B3 #A1B318 #18B32A
monochromatic
#300A47 #54117D #7818B3 #9A26E2 #B45CE9

Accessibility & contrast

On white

8.14
#7818B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7818B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7818B3
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7818B3#FFFFFF#000000##FFFFFF
##7818B31.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#6E456A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7818b3;
/* rgb */ color: rgb(120, 24, 179);
/* oklch */ color: oklch(45.8% 0.218 307.0);
Tailwind
colors: {
  custom: {
    50: '#a565cb',
    500: '#7818b3',
    950: '#000000',
  },
}
SCSS
$custom: #7818b3;
$custom-light: #a565cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7818b3",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 277.161,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45811,
    "c": 0.2185,
    "h": 307
  },
  "luminance": 0.07901
}

Semantic roles & 50–950 ramp

primary
#7818B3
secondary
#86CD5A
accent
#F3357D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7818B3

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

Preview Lab → · Contrast checker → · Palette generator →

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