#9A5FEE#9A5FEE

#9A5FEE is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.207 H 299.3°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9A5FEE
RGBrgb(154, 95, 238)
HSLhsl(265, 81%, 65%)
HSVhsv(265, 60%, 93%)
CMYKcmyk(35.3%, 60.1%, 0%, 6.7%)
CIE-LABlab(53.20, 52.62, -63.57)
CIE-LCHlch(53.20, 82.52, 309.61°)
OKLaboklab(61.9% 0.1012 -0.1805)
OKLCHoklch(61.9% 0.207 299.3)
XYZxyz(32.8475, 21.2272, 83.2390)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FEE #B3EE5F
analogous
#5F6CEE #9A5FEE #E15FEE
triadic
#9A5FEE #EE9A5F #5FEE9A
tetradic
#9A5FEE #EE5F6C #B3EE5F #5FEEE1
square
#9A5FEE #EE5F6C #B3EE5F #5FEEE1
split-complementary
#9A5FEE #EEE15F #6CEE5F
monochromatic
#5A14BE #7728E8 #9A5FEE #BD96F4 #E0CEFA

Accessibility & contrast

On white

4.00
#9A5FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9A5FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FEE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FEE#FFFFFF#000000##000000
##9A5FEE1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF3
Deuteranopia (green-blind)
#297EEB
Tritanopia (blue-blind)
#877E9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5fee;
/* rgb */ color: rgb(154, 95, 238);
/* oklch */ color: oklch(61.9% 0.207 299.3);
Tailwind
colors: {
  custom: {
    50: '#bd8ff4',
    500: '#9a5fee',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fee;
$custom-light: #bd8ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fee",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 238
  },
  "hsl": {
    "h": 264.755,
    "s": 80.791,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61904,
    "c": 0.20699,
    "h": 299.3
  },
  "luminance": 0.21227
}

Semantic roles & 50–950 ramp

primary
#9A5FEE
secondary
#D9ECBC
accent
#DD0885
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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