#9A3CE5#9A3CE5

#9A3CE5 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 57.0% C 0.240 H 305.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9A3CE5
RGBrgb(154, 60, 229)
HSLhsl(273, 76%, 57%)
HSVhsv(273, 74%, 90%)
CMYKcmyk(32.8%, 73.8%, 0%, 10.2%)
CIE-LABlab(46.66, 66.85, -69.09)
CIE-LCHlch(46.66, 96.14, 314.06°)
OKLaboklab(57.02% 0.1384 -0.1966)
OKLCHoklch(57.02% 0.24 305.1)
XYZxyz(29.0820, 15.7591, 75.6233)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A3CE5 #87E53C
analogous
#463CE5 #9A3CE5 #E53CDC
triadic
#9A3CE5 #E59A3C #3CE59A
tetradic
#9A3CE5 #E5463C #87E53C #3CDCE5
square
#9A3CE5 #E5463C #87E53C #3CDCE5
split-complementary
#9A3CE5 #DCE53C #3CE546
monochromatic
#5A1493 #7C1BC9 #9A3CE5 #B672EC #D2A8F3

Accessibility & contrast

On white

5.06
#9A3CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#9A3CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A3CE5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A3CE5#FFFFFF#000000##FFFFFF
##9A3CE51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#8C668E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9a3ce5;
/* rgb */ color: rgb(154, 60, 229);
/* oklch */ color: oklch(57.0% 0.240 305.1);
Tailwind
colors: {
  custom: {
    50: '#be7bee',
    500: '#9a3ce5',
    950: '#000000',
  },
}
SCSS
$custom: #9a3ce5;
$custom-light: #be7bee;
$custom-dark: #000000;
JSON
{
  "hex": "#9a3ce5",
  "rgb": {
    "r": 154,
    "g": 60,
    "b": 229
  },
  "hsl": {
    "h": 273.373,
    "s": 76.471,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57019,
    "c": 0.24043,
    "h": 305.1
  },
  "luminance": 0.15759
}

Semantic roles & 50–950 ramp

primary
#9A3CE5
secondary
#BBE19C
accent
#F33589
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A3CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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