#9A56E7#9A56E7

#9A56E7 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.2% C 0.211 H 302.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9A56E7
RGBrgb(154, 86, 231)
HSLhsl(268, 75%, 62%)
HSVhsv(268, 63%, 91%)
CMYKcmyk(33.3%, 62.8%, 0%, 9.4%)
CIE-LABlab(51.03, 55.52, -63.13)
CIE-LCHlch(51.03, 84.08, 311.33°)
OKLaboklab(60.19% 0.1118 -0.1792)
OKLCHoklch(60.19% 0.211 302)
XYZxyz(31.0746, 19.2950, 77.6730)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A56E7 #A3E756
analogous
#565BE7 #9A56E7 #E356E7
triadic
#9A56E7 #E79A56 #56E79A
tetradic
#9A56E7 #E7565B #A3E756 #56E7E3
square
#9A56E7 #E7565B #A3E756 #56E7E3
split-complementary
#9A56E7 #E7E356 #5BE756
monochromatic
#5D18AA #7A20DF #9A56E7 #BA8CEF #DAC1F6

Accessibility & contrast

On white

4.32
#9A56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#9A56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A56E7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A56E7#FFFFFF#000000##000000
##9A56E71.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EC
Deuteranopia (green-blind)
#2379E4
Tritanopia (blue-blind)
#8A7597
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9a56e7;
/* rgb */ color: rgb(154, 86, 231);
/* oklch */ color: oklch(60.2% 0.211 302.0);
Tailwind
colors: {
  custom: {
    50: '#bd89ef',
    500: '#9a56e7',
    950: '#000000',
  },
}
SCSS
$custom: #9a56e7;
$custom-light: #bd89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9a56e7",
  "rgb": {
    "r": 154,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 268.138,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60188,
    "c": 0.21127,
    "h": 302
  },
  "luminance": 0.19295
}

Semantic roles & 50–950 ramp

primary
#9A56E7
secondary
#CEE7B2
accent
#D70E79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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