#9781EF#9781EF

#9781EF is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.2% C 0.159 H 290.7°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9781EF
RGBrgb(151, 129, 239)
HSLhsl(252, 77%, 72%)
HSVhsv(252, 46%, 94%)
CMYKcmyk(36.8%, 46%, 0%, 6.3%)
CIE-LABlab(60.35, 33.31, -52.70)
CIE-LCHlch(60.35, 62.34, 302.30°)
OKLaboklab(67.16% 0.0561 -0.1487)
OKLCHoklch(67.16% 0.159 290.7)
XYZxyz(36.1886, 28.5109, 85.2411)
Luminance0.2851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9781EF #D9EF81
analogous
#81A2EF #9781EF #CE81EF
triadic
#9781EF #EF9781 #81EF97
tetradic
#9781EF #EF81A2 #D9EF81 #81EFCE
square
#9781EF #EF81A2 #D9EF81 #81EFCE
split-complementary
#9781EF #EFCE81 #A2EF81
monochromatic
#421CDA #6A4BE8 #9781EF #C4B7F6 #E9E4FC

Accessibility & contrast

On white

3.13
#9781EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#9781EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9781EF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9781EF#FFFFFF#000000##000000
##9781EF1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A93F3
Deuteranopia (green-blind)
#5C8FEC
Tritanopia (blue-blind)
#8097AD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #9781ef;
/* rgb */ color: rgb(151, 129, 239);
/* oklch */ color: oklch(67.2% 0.159 290.7);
Tailwind
colors: {
  custom: {
    50: '#b9a6f5',
    500: '#9781ef',
    950: '#000000',
  },
}
SCSS
$custom: #9781ef;
$custom-light: #b9a6f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9781ef",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 252,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67155,
    "c": 0.15896,
    "h": 290.7
  },
  "luminance": 0.28512
}

Semantic roles & 50–950 ramp

primary
#9781EF
secondary
#EEF3D8
accent
#DA0CB1
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#120F17
muted
#817F85

Preview Lab

Preview with #9781EF

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

Preview Lab → · Contrast checker → · Palette generator →

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