#9A5CEF#9A5CEF

#9A5CEF is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.212 H 299.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9A5CEF
RGBrgb(154, 92, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 62%, 94%)
CMYKcmyk(35.6%, 61.5%, 0%, 6.3%)
CIE-LABlab(52.68, 54.42, -64.96)
CIE-LCHlch(52.68, 84.74, 309.95°)
OKLaboklab(61.55% 0.1046 -0.1846)
OKLCHoklch(61.55% 0.212 299.5)
XYZxyz(32.7297, 20.7560, 83.9266)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CEF #B1EF5C
analogous
#5C68EF #9A5CEF #E35CEF
triadic
#9A5CEF #EF9A5C #5CEF9A
tetradic
#9A5CEF #EF5C68 #B1EF5C #5CEFE3
square
#9A5CEF #EF5C68 #B1EF5C #5CEFE3
split-complementary
#9A5CEF #EFE35C #68EF5C
monochromatic
#5B13BE #7724EA #9A5CEF #BD94F4 #DFCBFA

Accessibility & contrast

On white

4.08
#9A5CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9A5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CEF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CEF#FFFFFF#000000##000000
##9A5CEF1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#1F7DEC
Tritanopia (blue-blind)
#877C9D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5cef;
/* rgb */ color: rgb(154, 92, 239);
/* oklch */ color: oklch(61.6% 0.212 299.5);
Tailwind
colors: {
  custom: {
    50: '#bd8df5',
    500: '#9a5cef',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cef;
$custom-light: #bd8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cef",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 265.306,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.6155,
    "c": 0.2122,
    "h": 299.5
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#9A5CEF
secondary
#D7ECBA
accent
#DF0784
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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