#9F8AEE#9F8AEE

#9F8AEE is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.4% C 0.144 H 291.8°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#9F8AEE
RGBrgb(159, 138, 238)
HSLhsl(253, 75%, 74%)
HSVhsv(253, 42%, 93%)
CMYKcmyk(33.2%, 42%, 0%, 6.7%)
CIE-LABlab(63.11, 29.96, -47.72)
CIE-LCHlch(63.11, 56.35, 302.12°)
OKLaboklab(69.39% 0.0537 -0.134)
OKLCHoklch(69.39% 0.144 291.8)
XYZxyz(38.8152, 31.7201, 84.9499)
Luminance0.3172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8AEE #D9EE8A
analogous
#8AA7EE #9F8AEE #D18AEE
triadic
#9F8AEE #EE9F8A #8AEE9F
tetradic
#9F8AEE #EE8AA7 #D9EE8A #8AEED1
square
#9F8AEE #EE8AA7 #D9EE8A #8AEED1
split-complementary
#9F8AEE #EED18A #A7EE8A
monochromatic
#4820DD #7355E6 #9F8AEE #CBBFF6 #E9E4FB

Accessibility & contrast

On white

2.86
#9F8AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#9F8AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F8AEE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8AEE#FFFFFF#000000##000000
##9F8AEE1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9AF2
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#8C9DB1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #9f8aee;
/* rgb */ color: rgb(159, 138, 238);
/* oklch */ color: oklch(69.4% 0.144 291.8);
Tailwind
colors: {
  custom: {
    50: '#beacf4',
    500: '#9f8aee',
    950: '#000000',
  },
}
SCSS
$custom: #9f8aee;
$custom-light: #beacf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8aee",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 238
  },
  "hsl": {
    "h": 252.6,
    "s": 74.627,
    "l": 73.725
  },
  "oklch": {
    "l": 0.6939,
    "c": 0.14437,
    "h": 291.8
  },
  "luminance": 0.31721
}

Semantic roles & 50–950 ramp

primary
#9F8AEE
secondary
#EDF3D8
accent
#D70FAD
background
#FBFAFE
surface
#F7F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9F8AEE

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

Preview Lab → · Contrast checker → · Palette generator →

#9F8AEE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva