#9A5FEC#9A5FEC

#9A5FEC is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.8% C 0.205 H 299.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9A5FEC
RGBrgb(154, 95, 236)
HSLhsl(265, 79%, 65%)
HSVhsv(265, 60%, 93%)
CMYKcmyk(34.7%, 59.7%, 0%, 7.5%)
CIE-LABlab(53.07, 52.12, -62.65)
CIE-LCHlch(53.07, 81.50, 309.76°)
OKLaboklab(61.77% 0.1013 -0.1778)
OKLCHoklch(61.77% 0.205 299.7)
XYZxyz(32.5553, 21.1103, 81.7002)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FEC #B1EC5F
analogous
#5F6BEC #9A5FEC #E05FEC
triadic
#9A5FEC #EC9A5F #5FEC9A
tetradic
#9A5FEC #EC5F6B #B1EC5F #5FECE0
square
#9A5FEC #EC5F6B #B1EC5F #5FECE0
split-complementary
#9A5FEC #ECE05F #6BEC5F
monochromatic
#5B16BA #7728E6 #9A5FEC #BD96F2 #DFCCF9

Accessibility & contrast

On white

4.02
#9A5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9A5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FEC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FEC#FFFFFF#000000##000000
##9A5FEC1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a5fec;
/* rgb */ color: rgb(154, 95, 236);
/* oklch */ color: oklch(61.8% 0.205 299.7);
Tailwind
colors: {
  custom: {
    50: '#bc8ff3',
    500: '#9a5fec',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fec;
$custom-light: #bc8ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fec",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 265.106,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61771,
    "c": 0.20469,
    "h": 299.7
  },
  "luminance": 0.21111
}

Semantic roles & 50–950 ramp

primary
#9A5FEC
secondary
#D7EBBB
accent
#DB0A84
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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