#9A57EC#9A57EC

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

Color values

HEX#9A57EC
RGBrgb(154, 87, 236)
HSLhsl(267, 80%, 63%)
HSVhsv(267, 63%, 93%)
CMYKcmyk(34.7%, 63.1%, 0%, 7.5%)
CIE-LABlab(51.54, 56.23, -65.11)
CIE-LCHlch(51.54, 86.03, 310.81°)
OKLaboklab(60.66% 0.1104 -0.1851)
OKLCHoklch(60.66% 0.215 300.8)
XYZxyz(31.8713, 19.7423, 81.4722)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A57EC #A9EC57
analogous
#575EEC #9A57EC #E457EC
triadic
#9A57EC #EC9A57 #57EC9A
tetradic
#9A57EC #EC575E #A9EC57 #57ECE4
square
#9A57EC #EC575E #A9EC57 #57ECE4
split-complementary
#9A57EC #ECE457 #5EEC57
monochromatic
#5C14B4 #7920E6 #9A57EC #BB8EF2 #DCC5F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A57EC#FFFFFF#000000##000000
##9A57EC1.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)
#007AF1
Deuteranopia (green-blind)
#197AE9
Tritanopia (blue-blind)
#89789A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a57ec;
/* rgb */ color: rgb(154, 87, 236);
/* oklch */ color: oklch(60.7% 0.215 300.8);
Tailwind
colors: {
  custom: {
    50: '#bd8af3',
    500: '#9a57ec',
    950: '#000000',
  },
}
SCSS
$custom: #9a57ec;
$custom-light: #bd8af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a57ec",
  "rgb": {
    "r": 154,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 266.98,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60664,
    "c": 0.21548,
    "h": 300.8
  },
  "luminance": 0.19743
}

Semantic roles & 50–950 ramp

primary
#9A57EC
secondary
#D2EAB5
accent
#DC0A7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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