#9A5FEB#9A5FEB

#9A5FEB is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.7% C 0.204 H 299.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9A5FEB
RGBrgb(154, 95, 235)
HSLhsl(265, 78%, 65%)
HSVhsv(265, 60%, 92%)
CMYKcmyk(34.5%, 59.6%, 0%, 7.8%)
CIE-LABlab(53.01, 51.87, -62.20)
CIE-LCHlch(53.01, 80.99, 309.83°)
OKLaboklab(61.71% 0.1014 -0.1765)
OKLCHoklch(61.71% 0.204 299.9)
XYZxyz(32.4104, 21.0523, 80.9371)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FEB #B0EB5F
analogous
#5F6AEB #9A5FEB #E05FEB
triadic
#9A5FEB #EB9A5F #5FEB9A
tetradic
#9A5FEB #EB5F6A #B0EB5F #5FEBE0
square
#9A5FEB #EB5F6A #B0EB5F #5FEBE0
split-complementary
#9A5FEB #EBE05F #6AEB5F
monochromatic
#5B17B9 #7829E4 #9A5FEB #BC95F2 #DFCCF9

Accessibility & contrast

On white

4.03
#9A5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#9A5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FEB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FEB#FFFFFF#000000##000000
##9A5FEB1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#2E7EE8
Tritanopia (blue-blind)
#897D9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5feb;
/* rgb */ color: rgb(154, 95, 235);
/* oklch */ color: oklch(61.7% 0.204 299.9);
Tailwind
colors: {
  custom: {
    50: '#bc8ff2',
    500: '#9a5feb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5feb;
$custom-light: #bc8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5feb",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 265.286,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61705,
    "c": 0.20354,
    "h": 299.9
  },
  "luminance": 0.21053
}

Semantic roles & 50–950 ramp

primary
#9A5FEB
secondary
#D7EBBB
accent
#DA0B83
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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