#9D7EFE#9D7EFE

#9D7EFE is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.0% C 0.183 H 292.0°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9D7EFE
RGBrgb(157, 126, 254)
HSLhsl(255, 98%, 75%)
HSVhsv(255, 50%, 100%)
CMYKcmyk(38.2%, 50.4%, 0%, 0.4%)
CIE-LABlab(61.00, 40.46, -59.90)
CIE-LCHlch(61.00, 72.28, 304.03°)
OKLaboklab(68.03% 0.0685 -0.1697)
OKLCHoklch(68.03% 0.183 292)
XYZxyz(39.2501, 29.2445, 97.3235)
Luminance0.2925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7EFE #DFFE7E
analogous
#7E9FFE #9D7EFE #DD7EFE
triadic
#9D7EFE #FE9D7E #7EFE9D
tetradic
#9D7EFE #FE7E9F #DFFE7E #7EFEDD
square
#9D7EFE #FE7E9F #DFFE7E #7EFEDD
split-complementary
#9D7EFE #FEDD7E #9FFE7E
monochromatic
#4105FD #6F41FE #9D7EFE #CBBBFE #E8E1FF

Accessibility & contrast

On white

3.07
#9D7EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#9D7EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7EFE
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7EFE#FFFFFF#000000##000000
##9D7EFE1.003.076.856.85
#FFFFFF3.071.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#4F91FB
Tritanopia (blue-blind)
#8498B2
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9d7efe;
/* rgb */ color: rgb(157, 126, 254);
/* oklch */ color: oklch(68.0% 0.183 292.0);
Tailwind
colors: {
  custom: {
    50: '#bea4ff',
    500: '#9d7efe',
    950: '#000000',
  },
}
SCSS
$custom: #9d7efe;
$custom-light: #bea4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7efe",
  "rgb": {
    "r": 157,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 254.531,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.68031,
    "c": 0.18297,
    "h": 292
  },
  "luminance": 0.29246
}

Semantic roles & 50–950 ramp

primary
#9D7EFE
secondary
#EFF7D4
accent
#E600AE
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F18
muted
#827F86

Preview Lab

Preview with #9D7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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