#7918B4#7918B4

#7918B4 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 46.0% C 0.220 H 307.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7918B4
RGBrgb(121, 24, 180)
HSLhsl(277, 76%, 40%)
HSVhsv(277, 87%, 71%)
CMYKcmyk(32.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.01, 63.06, -61.47)
CIE-LCHlch(34.01, 88.07, 315.73°)
OKLaboklab(46.03% 0.1325 -0.1751)
OKLCHoklch(46.03% 0.22 307.1)
XYZxyz(16.4482, 8.0137, 43.8515)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7918B4 #53B418
analogous
#2B18B4 #7918B4 #B418A1
triadic
#7918B4 #B47918 #18B479
tetradic
#7918B4 #B42B18 #53B418 #18A1B4
square
#7918B4 #B42B18 #53B418 #18A1B4
split-complementary
#7918B4 #A1B418 #18B42B
monochromatic
#300A48 #55117E #7918B4 #9B27E2 #B45DE9

Accessibility & contrast

On white

8.07
#7918B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7918B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7918B4
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7918B4#FFFFFF#000000##FFFFFF
##7918B41.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7918b4;
/* rgb */ color: rgb(121, 24, 180);
/* oklch */ color: oklch(46.0% 0.220 307.1);
Tailwind
colors: {
  custom: {
    50: '#a665cc',
    500: '#7918b4',
    950: '#000000',
  },
}
SCSS
$custom: #7918b4;
$custom-light: #a665cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7918b4",
  "rgb": {
    "r": 121,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 277.308,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.4603,
    "c": 0.21961,
    "h": 307.1
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#7918B4
secondary
#86CD5B
accent
#F3357D
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7918B4

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

Preview Lab → · Contrast checker → · Palette generator →

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