#9A7DFD#9A7DFD

#9A7DFD is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.5% C 0.183 H 291.1°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#9A7DFD
RGBrgb(154, 125, 253)
HSLhsl(254, 97%, 74%)
HSVhsv(254, 51%, 99%)
CMYKcmyk(39.1%, 50.6%, 0%, 0.8%)
CIE-LABlab(60.45, 40.05, -60.24)
CIE-LCHlch(60.45, 72.34, 303.62°)
OKLaboklab(67.54% 0.066 -0.1708)
OKLCHoklch(67.54% 0.183 291.1)
XYZxyz(38.3849, 28.6280, 96.4128)
Luminance0.2863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7DFD #E0FD7D
analogous
#7DA0FD #9A7DFD #DA7DFD
triadic
#9A7DFD #FD9A7D #7DFD9A
tetradic
#9A7DFD #FD7DA0 #E0FD7D #7DFDDA
square
#9A7DFD #FD7DA0 #E0FD7D #7DFDDA
split-complementary
#9A7DFD #FDDA7D #A0FD7D
monochromatic
#3C04FB #6B41FC #9A7DFD #C9B9FE #E8E1FF

Accessibility & contrast

On white

3.12
#9A7DFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#9A7DFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7DFD
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7DFD#FFFFFF#000000##000000
##9A7DFD1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#4B8FFA
Tritanopia (blue-blind)
#8097B1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9a7dfd;
/* rgb */ color: rgb(154, 125, 253);
/* oklch */ color: oklch(67.5% 0.183 291.1);
Tailwind
colors: {
  custom: {
    50: '#bca3ff',
    500: '#9a7dfd',
    950: '#000000',
  },
}
SCSS
$custom: #9a7dfd;
$custom-light: #bca3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7dfd",
  "rgb": {
    "r": 154,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 253.594,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.67543,
    "c": 0.18305,
    "h": 291.1
  },
  "luminance": 0.28629
}

Semantic roles & 50–950 ramp

primary
#9A7DFD
secondary
#EFF7D4
accent
#E600B2
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#120F18
muted
#817F86

Preview Lab

Preview with #9A7DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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