#9781F8#9781F8

#9781F8 is a light, vivid violet. Relative luminance 0.291; OKLCH L 67.7% C 0.171 H 289.5°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9781F8
RGBrgb(151, 129, 248)
HSLhsl(251, 89%, 74%)
HSVhsv(251, 48%, 97%)
CMYKcmyk(39.1%, 48%, 0%, 2.7%)
CIE-LABlab(60.83, 35.72, -56.90)
CIE-LCHlch(60.83, 67.18, 302.12°)
OKLaboklab(67.68% 0.0571 -0.161)
OKLCHoklch(67.68% 0.171 289.5)
XYZxyz(37.5514, 29.0560, 92.4186)
Luminance0.2906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9781F8 #E2F881
analogous
#81A7F8 #9781F8 #D281F8
triadic
#9781F8 #F89781 #81F897
tetradic
#9781F8 #F881A7 #E2F881 #81F8D2
square
#9781F8 #F881A7 #E2F881 #81F8D2
split-complementary
#9781F8 #F8D281 #A7F881
monochromatic
#380DF1 #6747F5 #9781F8 #C7BBFB #E7E2FD

Accessibility & contrast

On white

3.08
#9781F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#9781F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9781F8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9781F8#FFFFFF#000000##000000
##9781F81.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FC
Deuteranopia (green-blind)
#5490F5
Tritanopia (blue-blind)
#7D99B1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9781f8;
/* rgb */ color: rgb(151, 129, 248);
/* oklch */ color: oklch(67.7% 0.171 289.5);
Tailwind
colors: {
  custom: {
    50: '#baa6fb',
    500: '#9781f8',
    950: '#000000',
  },
}
SCSS
$custom: #9781f8;
$custom-light: #baa6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#9781f8",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 251.092,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67675,
    "c": 0.17085,
    "h": 289.5
  },
  "luminance": 0.29057
}

Semantic roles & 50–950 ramp

primary
#9781F8
secondary
#F0F5D6
accent
#E600BB
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #9781F8

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

Preview Lab → · Contrast checker → · Palette generator →

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