#9A5CEC#9A5CEC

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

Color values

HEX#9A5CEC
RGBrgb(154, 92, 236)
HSLhsl(266, 79%, 64%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.7%, 61%, 0%, 7.5%)
CIE-LABlab(52.49, 53.68, -63.59)
CIE-LCHlch(52.49, 83.22, 310.17°)
OKLaboklab(61.35% 0.1048 -0.1806)
OKLCHoklch(61.35% 0.209 300.1)
XYZxyz(32.2902, 20.5802, 81.6118)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CEC #AEEC5C
analogous
#5C66EC #9A5CEC #E25CEC
triadic
#9A5CEC #EC9A5C #5CEC9A
tetradic
#9A5CEC #EC5C66 #AEEC5C #5CECE2
square
#9A5CEC #EC5C66 #AEEC5C #5CECE2
split-complementary
#9A5CEC #ECE25C #66EC5C
monochromatic
#5C15B8 #7825E6 #9A5CEC #BC93F2 #DECAF9

Accessibility & contrast

On white

4.10
#9A5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9A5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CEC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CEC#FFFFFF#000000##000000
##9A5CEC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#267CE9
Tritanopia (blue-blind)
#887B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5cec;
/* rgb */ color: rgb(154, 92, 236);
/* oklch */ color: oklch(61.3% 0.209 300.1);
Tailwind
colors: {
  custom: {
    50: '#bd8df3',
    500: '#9a5cec',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cec;
$custom-light: #bd8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cec",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 265.833,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61347,
    "c": 0.20879,
    "h": 300.1
  },
  "luminance": 0.2058
}

Semantic roles & 50–950 ramp

primary
#9A5CEC
secondary
#D5EBB9
accent
#DB0A81
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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