#7818B4#7818B4

#7818B4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.9% C 0.219 H 306.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7818B4
RGBrgb(120, 24, 180)
HSLhsl(277, 76%, 40%)
HSVhsv(277, 87%, 71%)
CMYKcmyk(33.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(33.86, 62.92, -61.72)
CIE-LCHlch(33.86, 88.14, 315.55°)
OKLaboklab(45.9% 0.1311 -0.1759)
OKLCHoklch(45.9% 0.219 306.7)
XYZxyz(16.3088, 7.9418, 43.8449)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7818B4 #54B418
analogous
#2A18B4 #7818B4 #B418A2
triadic
#7818B4 #B47818 #18B478
tetradic
#7818B4 #B42A18 #54B418 #18A2B4
square
#7818B4 #B42A18 #54B418 #18A2B4
split-complementary
#7818B4 #A2B418 #18B42A
monochromatic
#300A48 #54117E #7818B4 #9A27E2 #B35DE9

Accessibility & contrast

On white

8.11
#7818B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7818B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7818B4
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7818B4#FFFFFF#000000##FFFFFF
##7818B41.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#6D466B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7818b4;
/* rgb */ color: rgb(120, 24, 180);
/* oklch */ color: oklch(45.9% 0.219 306.7);
Tailwind
colors: {
  custom: {
    50: '#a565cc',
    500: '#7818b4',
    950: '#000000',
  },
}
SCSS
$custom: #7818b4;
$custom-light: #a565cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7818b4",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 276.923,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.45896,
    "c": 0.21938,
    "h": 306.7
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#7818B4
secondary
#87CD5B
accent
#F3357E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7818B4

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

Preview Lab → · Contrast checker → · Palette generator →

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