#9F7FF2#9F7FF2

#9F7FF2 is a light, vivid violet. Relative luminance 0.290; OKLCH L 67.7% C 0.166 H 294.4°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#9F7FF2
RGBrgb(159, 127, 242)
HSLhsl(257, 82%, 72%)
HSVhsv(257, 48%, 95%)
CMYKcmyk(34.3%, 47.5%, 0%, 5.1%)
CIE-LABlab(60.75, 37.25, -53.68)
CIE-LCHlch(60.75, 65.34, 304.76°)
OKLaboklab(67.67% 0.0685 -0.1514)
OKLCHoklch(67.67% 0.166 294.4)
XYZxyz(37.9104, 28.9598, 87.5796)
Luminance0.2896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7FF2 #D2F27F
analogous
#7F98F2 #9F7FF2 #D97FF2
triadic
#9F7FF2 #F29F7F #7FF29F
tetradic
#9F7FF2 #F27F98 #D2F27F #7FF2D9
square
#9F7FF2 #F27F98 #D2F27F #7FF2D9
split-complementary
#9F7FF2 #F2D97F #98F27F
monochromatic
#4F17E0 #7547EC #9F7FF2 #C9B7F8 #EAE3FC

Accessibility & contrast

On white

3.09
#9F7FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#9F7FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7FF2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7FF2#FFFFFF#000000##000000
##9F7FF21.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5794F6
Deuteranopia (green-blind)
#5C91EF
Tritanopia (blue-blind)
#8C95AD
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9f7ff2;
/* rgb */ color: rgb(159, 127, 242);
/* oklch */ color: oklch(67.7% 0.166 294.4);
Tailwind
colors: {
  custom: {
    50: '#bfa4f7',
    500: '#9f7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #9f7ff2;
$custom-light: #bfa4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7ff2",
  "rgb": {
    "r": 159,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 256.696,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67674,
    "c": 0.16619,
    "h": 294.4
  },
  "luminance": 0.2896
}

Semantic roles & 50–950 ramp

primary
#9F7FF2
secondary
#ECF4D7
accent
#DE08A2
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#120F17
muted
#817F85

Preview Lab

Preview with #9F7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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