#9A5FEF#9A5FEF

#9A5FEF is a mid, highly saturated violet. Relative luminance 0.213; OKLCH L 62.0% C 0.208 H 299.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9A5FEF
RGBrgb(154, 95, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 60%, 94%)
CMYKcmyk(35.6%, 60.3%, 0%, 6.3%)
CIE-LABlab(53.26, 52.86, -64.02)
CIE-LCHlch(53.26, 83.03, 309.55°)
OKLaboklab(61.97% 0.1012 -0.1819)
OKLCHoklch(61.97% 0.208 299.1)
XYZxyz(32.9948, 21.2861, 84.0149)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FEF #B4EF5F
analogous
#5F6CEF #9A5FEF #E25FEF
triadic
#9A5FEF #EF9A5F #5FEF9A
tetradic
#9A5FEF #EF5F6C #B4EF5F #5FEFE2
square
#9A5FEF #EF5F6C #B4EF5F #5FEFE2
split-complementary
#9A5FEF #EFE25F #6CEF5F
monochromatic
#5A13C0 #7727E9 #9A5FEF #BD97F5 #E0CEFA

Accessibility & contrast

On white

3.99
#9A5FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#9A5FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FEF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FEF#FFFFFF#000000##000000
##9A5FEF1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF4
Deuteranopia (green-blind)
#277EEC
Tritanopia (blue-blind)
#877E9E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5fef;
/* rgb */ color: rgb(154, 95, 239);
/* oklch */ color: oklch(62.0% 0.208 299.1);
Tailwind
colors: {
  custom: {
    50: '#bd8ff5',
    500: '#9a5fef',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fef;
$custom-light: #bd8ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fef",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 264.583,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61971,
    "c": 0.20814,
    "h": 299.1
  },
  "luminance": 0.21286
}

Semantic roles & 50–950 ramp

primary
#9A5FEF
secondary
#D9EDBD
accent
#DE0786
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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