#9778F8#9778F8

#9778F8 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.1% C 0.184 H 291.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9778F8
RGBrgb(151, 120, 248)
HSLhsl(255, 90%, 72%)
HSVhsv(255, 52%, 97%)
CMYKcmyk(39.1%, 51.6%, 0%, 2.7%)
CIE-LABlab(58.78, 40.84, -60.18)
CIE-LCHlch(58.78, 72.73, 304.16°)
OKLaboklab(66.14% 0.0681 -0.1707)
OKLCHoklch(66.14% 0.184 291.7)
XYZxyz(36.4177, 26.7886, 92.0407)
Luminance0.2679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9778F8 #D9F878
analogous
#7899F8 #9778F8 #D778F8
triadic
#9778F8 #F89778 #78F897
tetradic
#9778F8 #F87899 #D9F878 #78F8D7
square
#9778F8 #F87899 #D9F878 #78F8D7
split-complementary
#9778F8 #F8D778 #99F878
monochromatic
#420CE9 #6A3EF5 #9778F8 #C4B2FB #E9E2FD

Accessibility & contrast

On white

3.30
#9778F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9778F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9778F8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9778F8#FFFFFF#000000##000000
##9778F81.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFC
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#7D92AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9778f8;
/* rgb */ color: rgb(151, 120, 248);
/* oklch */ color: oklch(66.1% 0.184 291.7);
Tailwind
colors: {
  custom: {
    50: '#ba9ffb',
    500: '#9778f8',
    950: '#000000',
  },
}
SCSS
$custom: #9778f8;
$custom-light: #ba9ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#9778f8",
  "rgb": {
    "r": 151,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 254.531,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66141,
    "c": 0.18373,
    "h": 291.7
  },
  "luminance": 0.2679
}

Semantic roles & 50–950 ramp

primary
#9778F8
secondary
#EEF6D5
accent
#E600AE
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9778F8

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

Preview Lab → · Contrast checker → · Palette generator →

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