#9A5CCB#9A5CCB

#9A5CCB is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.3% C 0.171 H 307.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9A5CCB
RGBrgb(154, 92, 203)
HSLhsl(274, 52%, 58%)
HSVhsv(274, 55%, 80%)
CMYKcmyk(24.1%, 54.7%, 0%, 20.4%)
CIE-LABlab(50.50, 45.80, -48.08)
CIE-LCHlch(50.50, 66.41, 313.61°)
OKLaboklab(59.25% 0.1048 -0.1351)
OKLCHoklch(59.25% 0.171 307.8)
XYZxyz(27.9309, 18.8365, 58.6527)
Luminance0.1884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CCB #8DCB5C
analogous
#635CCB #9A5CCB #CB5CC4
triadic
#9A5CCB #CB9A5C #5CCB9A
tetradic
#9A5CCB #CB635C #8DCB5C #5CC4CB
square
#9A5CCB #CB635C #8DCB5C #5CC4CB
split-complementary
#9A5CCB #C4CB5C #5CCB63
monochromatic
#5C2A83 #7C39B1 #9A5CCB #B78ADA #D3B9E9

Accessibility & contrast

On white

4.41
#9A5CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#9A5CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CCB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CCB#FFFFFF#000000##000000
##9A5CCB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3876CF
Deuteranopia (green-blind)
#4D79C8
Tritanopia (blue-blind)
#93708B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a5ccb;
/* rgb */ color: rgb(154, 92, 203);
/* oklch */ color: oklch(59.3% 0.171 307.8);
Tailwind
colors: {
  custom: {
    50: '#ba8cdb',
    500: '#9a5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ccb;
$custom-light: #ba8cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ccb",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 273.514,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59252,
    "c": 0.171,
    "h": 307.8
  },
  "luminance": 0.18836
}

Semantic roles & 50–950 ramp

primary
#9A5CCB
secondary
#BFD8AB
accent
#DB4D8C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9A5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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