#9D7FF2#9D7FF2

#9D7FF2 is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.5% C 0.166 H 293.5°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9D7FF2
RGBrgb(157, 127, 242)
HSLhsl(256, 82%, 72%)
HSVhsv(256, 48%, 95%)
CMYKcmyk(35.1%, 47.5%, 0%, 5.1%)
CIE-LABlab(60.57, 36.75, -53.98)
CIE-LCHlch(60.57, 65.30, 304.25°)
OKLaboklab(67.5% 0.0661 -0.1523)
OKLCHoklch(67.5% 0.166 293.5)
XYZxyz(37.5169, 28.7569, 87.5612)
Luminance0.2876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7FF2 #D4F27F
analogous
#7F9BF2 #9D7FF2 #D67FF2
triadic
#9D7FF2 #F29D7F #7FF29D
tetradic
#9D7FF2 #F27F9B #D4F27F #7FF2D6
square
#9D7FF2 #F27F9B #D4F27F #7FF2D6
split-complementary
#9D7FF2 #F2D67F #9BF27F
monochromatic
#4B17E0 #7247EC #9D7FF2 #C8B7F8 #EAE3FC

Accessibility & contrast

On white

3.11
#9D7FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#9D7FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7FF2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7FF2#FFFFFF#000000##000000
##9D7FF21.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5693F6
Deuteranopia (green-blind)
#5B90EF
Tritanopia (blue-blind)
#8995AD
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9d7ff2;
/* rgb */ color: rgb(157, 127, 242);
/* oklch */ color: oklch(67.5% 0.166 293.5);
Tailwind
colors: {
  custom: {
    50: '#bda4f7',
    500: '#9d7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #9d7ff2;
$custom-light: #bda4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7ff2",
  "rgb": {
    "r": 157,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 255.652,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67497,
    "c": 0.16606,
    "h": 293.5
  },
  "luminance": 0.28758
}

Semantic roles & 50–950 ramp

primary
#9D7FF2
secondary
#ECF4D7
accent
#DE08A6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #9D7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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