#9778EB#9778EB

#9778EB is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.4% C 0.167 H 293.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9778EB
RGBrgb(151, 120, 235)
HSLhsl(256, 74%, 70%)
HSVhsv(256, 49%, 92%)
CMYKcmyk(35.7%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.05, 37.40, -54.14)
CIE-LCHlch(58.05, 65.80, 304.64°)
OKLaboklab(65.36% 0.0671 -0.1529)
OKLCHoklch(65.36% 0.167 293.7)
XYZxyz(34.4705, 26.0097, 81.7854)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9778EB #CCEB78
analogous
#7893EB #9778EB #D178EB
triadic
#9778EB #EB9778 #78EB97
tetradic
#9778EB #EB7893 #CCEB78 #78EBD1
square
#9778EB #EB7893 #CCEB78 #78EBD1
split-complementary
#9778EB #EBD178 #93EB78
monochromatic
#4D1ECB #6E43E3 #9778EB #C0ADF3 #E9E3FB

Accessibility & contrast

On white

3.39
#9778EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#9778EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9778EB
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9778EB#FFFFFF#000000##000000
##9778EB1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#538AE8
Tritanopia (blue-blind)
#838FA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9778eb;
/* rgb */ color: rgb(151, 120, 235);
/* oklch */ color: oklch(65.4% 0.167 293.7);
Tailwind
colors: {
  custom: {
    50: '#b99ff2',
    500: '#9778eb',
    950: '#000000',
  },
}
SCSS
$custom: #9778eb;
$custom-light: #b99ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9778eb",
  "rgb": {
    "r": 151,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 256.174,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65358,
    "c": 0.16701,
    "h": 293.7
  },
  "luminance": 0.2601
}

Semantic roles & 50–950 ramp

primary
#9778EB
secondary
#E7F0CF
accent
#D60FA1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9778EB

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

Preview Lab → · Contrast checker → · Palette generator →

#9778EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva