#9A5FE3#9A5FE3

#9A5FE3 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.2% C 0.194 H 301.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9A5FE3
RGBrgb(154, 95, 227)
HSLhsl(267, 70%, 63%)
HSVhsv(267, 58%, 89%)
CMYKcmyk(32.2%, 58.1%, 0%, 11%)
CIE-LABlab(52.51, 49.91, -58.50)
CIE-LCHlch(52.51, 76.90, 310.47°)
OKLaboklab(61.18% 0.1015 -0.1656)
OKLCHoklch(61.18% 0.194 301.5)
XYZxyz(31.2805, 20.6004, 74.9865)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FE3 #A8E35F
analogous
#5F66E3 #9A5FE3 #DC5FE3
triadic
#9A5FE3 #E39A5F #5FE39A
tetradic
#9A5FE3 #E35F66 #A8E35F #5FE3DC
square
#9A5FE3 #E35F66 #A8E35F #5FE3DC
split-complementary
#9A5FE3 #E3DC5F #66E35F
monochromatic
#5C1EAA #792BDA #9A5FE3 #BB93EC #DCC7F5

Accessibility & contrast

On white

4.10
#9A5FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9A5FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FE3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FE3#FFFFFF#000000##000000
##9A5FE31.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D7CE7
Deuteranopia (green-blind)
#3A7DE0
Tritanopia (blue-blind)
#8B7A98
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9a5fe3;
/* rgb */ color: rgb(154, 95, 227);
/* oklch */ color: oklch(61.2% 0.194 301.5);
Tailwind
colors: {
  custom: {
    50: '#bc8fec',
    500: '#9a5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fe3;
$custom-light: #bc8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fe3",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 266.818,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.19428,
    "h": 301.5
  },
  "luminance": 0.206
}

Semantic roles & 50–950 ramp

primary
#9A5FE3
secondary
#D1E7B7
accent
#D2137D
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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