#9A5FED#9A5FED

#9A5FED is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.8% C 0.206 H 299.5°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9A5FED
RGBrgb(154, 95, 237)
HSLhsl(265, 80%, 65%)
HSVhsv(265, 60%, 93%)
CMYKcmyk(35%, 59.9%, 0%, 7.1%)
CIE-LABlab(53.13, 52.37, -63.11)
CIE-LCHlch(53.13, 82.01, 309.68°)
OKLaboklab(61.84% 0.1013 -0.1792)
OKLCHoklch(61.84% 0.206 299.5)
XYZxyz(32.7010, 21.1686, 82.4675)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FED #B2ED5F
analogous
#5F6BED #9A5FED #E15FED
triadic
#9A5FED #ED9A5F #5FED9A
tetradic
#9A5FED #ED5F6B #B2ED5F #5FEDE1
square
#9A5FED #ED5F6B #B2ED5F #5FEDE1
split-complementary
#9A5FED #EDE15F #6BED5F
monochromatic
#5B15BC #7728E7 #9A5FED #BD96F3 #DFCDF9

Accessibility & contrast

On white

4.01
#9A5FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9A5FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FED
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FED#FFFFFF#000000##000000
##9A5FED1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF2
Deuteranopia (green-blind)
#2B7EEA
Tritanopia (blue-blind)
#887D9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5fed;
/* rgb */ color: rgb(154, 95, 237);
/* oklch */ color: oklch(61.8% 0.206 299.5);
Tailwind
colors: {
  custom: {
    50: '#bd8ff4',
    500: '#9a5fed',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fed;
$custom-light: #bd8ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fed",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 264.93,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61838,
    "c": 0.20584,
    "h": 299.5
  },
  "luminance": 0.21169
}

Semantic roles & 50–950 ramp

primary
#9A5FED
secondary
#D8ECBC
accent
#DC0985
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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