#9A5BF1#9A5BF1

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

Color values

HEX#9A5BF1
RGBrgb(154, 91, 241)
HSLhsl(265, 84%, 65%)
HSVhsv(265, 62%, 95%)
CMYKcmyk(36.1%, 62.2%, 0%, 5.5%)
CIE-LABlab(52.62, 55.42, -66.17)
CIE-LCHlch(52.62, 86.32, 309.95°)
OKLaboklab(61.55% 0.1056 -0.1882)
OKLCHoklch(61.55% 0.216 299.3)
XYZxyz(32.9408, 20.7027, 85.4626)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BF1 #B2F15B
analogous
#5B67F1 #9A5BF1 #E55BF1
triadic
#9A5BF1 #F19A5B #5BF19A
tetradic
#9A5BF1 #F15B67 #B2F15B #5BF1E5
square
#9A5BF1 #F15B67 #B2F15B #5BF1E5
split-complementary
#9A5BF1 #F1E55B #67F15B
monochromatic
#5B10C1 #7723EC #9A5BF1 #BD93F6 #DFCCFB

Accessibility & contrast

On white

4.09
#9A5BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9A5BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BF1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BF1#FFFFFF#000000##000000
##9A5BF11.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#167CEE
Tritanopia (blue-blind)
#877C9E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5bf1;
/* rgb */ color: rgb(154, 91, 241);
/* oklch */ color: oklch(61.5% 0.216 299.3);
Tailwind
colors: {
  custom: {
    50: '#bd8cf6',
    500: '#9a5bf1',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bf1;
$custom-light: #bd8cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bf1",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 241
  },
  "hsl": {
    "h": 265.2,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61549,
    "c": 0.21578,
    "h": 299.3
  },
  "luminance": 0.20703
}

Semantic roles & 50–950 ramp

primary
#9A5BF1
secondary
#D8EDBA
accent
#E10584
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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