#9A56EF#9A56EF

#9A56EF is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.7% C 0.220 H 300.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9A56EF
RGBrgb(154, 86, 239)
HSLhsl(267, 83%, 64%)
HSVhsv(267, 64%, 94%)
CMYKcmyk(35.6%, 64%, 0%, 6.3%)
CIE-LABlab(51.56, 57.45, -66.77)
CIE-LCHlch(51.56, 88.09, 310.71°)
OKLaboklab(60.74% 0.1112 -0.1899)
OKLCHoklch(60.74% 0.22 300.3)
XYZxyz(32.2304, 19.7573, 83.7601)
Luminance0.1976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A56EF #ABEF56
analogous
#565EEF #9A56EF #E756EF
triadic
#9A56EF #EF9A56 #56EF9A
tetradic
#9A56EF #EF565E #ABEF56 #56EFE7
square
#9A56EF #EF565E #ABEF56 #56EFE7
split-complementary
#9A56EF #EFE756 #5EEF56
monochromatic
#5C12B9 #791EEA #9A56EF #BB8EF4 #DDC6FA

Accessibility & contrast

On white

4.24
#9A56EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#9A56EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A56EF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A56EF#FFFFFF#000000##000000
##9A56EF1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF4
Deuteranopia (green-blind)
#077AEC
Tritanopia (blue-blind)
#88789B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a56ef;
/* rgb */ color: rgb(154, 86, 239);
/* oklch */ color: oklch(60.7% 0.220 300.3);
Tailwind
colors: {
  custom: {
    50: '#bd89f5',
    500: '#9a56ef',
    950: '#000000',
  },
}
SCSS
$custom: #9a56ef;
$custom-light: #bd89f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a56ef",
  "rgb": {
    "r": 154,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 266.667,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6074,
    "c": 0.22009,
    "h": 300.3
  },
  "luminance": 0.19758
}

Semantic roles & 50–950 ramp

primary
#9A56EF
secondary
#D3EBB5
accent
#DF067F
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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