#9A5BED#9A5BED

#9A5BED is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.211 H 300.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9A5BED
RGBrgb(154, 91, 237)
HSLhsl(266, 80%, 64%)
HSVhsv(266, 62%, 93%)
CMYKcmyk(35%, 61.6%, 0%, 7.1%)
CIE-LABlab(52.36, 54.44, -64.36)
CIE-LCHlch(52.36, 84.30, 310.23°)
OKLaboklab(61.28% 0.1058 -0.1829)
OKLCHoklch(61.28% 0.211 300.1)
XYZxyz(32.3499, 20.4664, 82.3504)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5BED #AEED5B
analogous
#5B65ED #9A5BED #E35BED
triadic
#9A5BED #ED9A5B #5BED9A
tetradic
#9A5BED #ED5B65 #AEED5B #5BEDE3
square
#9A5BED #ED5B65 #AEED5B #5BEDE3
split-complementary
#9A5BED #EDE35B #65ED5B
monochromatic
#5C14B9 #7824E7 #9A5BED #BC92F3 #DEC9F9

Accessibility & contrast

On white

4.12
#9A5BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#9A5BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5BED
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5BED#FFFFFF#000000##000000
##9A5BED1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#227CEA
Tritanopia (blue-blind)
#887B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5bed;
/* rgb */ color: rgb(154, 91, 237);
/* oklch */ color: oklch(61.3% 0.211 300.1);
Tailwind
colors: {
  custom: {
    50: '#bd8cf4',
    500: '#9a5bed',
    950: '#000000',
  },
}
SCSS
$custom: #9a5bed;
$custom-light: #bd8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5bed",
  "rgb": {
    "r": 154,
    "g": 91,
    "b": 237
  },
  "hsl": {
    "h": 265.89,
    "s": 80.22,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61276,
    "c": 0.21128,
    "h": 300.1
  },
  "luminance": 0.20467
}

Semantic roles & 50–950 ramp

primary
#9A5BED
secondary
#D5EBB9
accent
#DD0981
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5BED

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

Preview Lab → · Contrast checker → · Palette generator →

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