#9A38CE#9A38CE

#9A38CE is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.9% C 0.223 H 310.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#9A38CE
RGBrgb(154, 56, 206)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 73%, 81%)
CMYKcmyk(25.2%, 72.8%, 0%, 19.2%)
CIE-LABlab(44.45, 63.49, -59.51)
CIE-LCHlch(44.45, 87.02, 316.85°)
OKLaboklab(54.94% 0.1461 -0.1684)
OKLCHoklch(54.94% 0.223 310.9)
XYZxyz(25.8790, 14.1552, 59.7495)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38CE #6CCE38
analogous
#4F38CE #9A38CE #CE38B7
triadic
#9A38CE #CE9A38 #38CE9A
tetradic
#9A38CE #CE4F38 #6CCE38 #38B7CE
square
#9A38CE #CE4F38 #6CCE38 #38B7CE
split-complementary
#9A38CE #B7CE38 #38CE4F
monochromatic
#531C70 #7728A1 #9A38CE #B369DA #CC9AE6

Accessibility & contrast

On white

5.48
#9A38CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9A38CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38CE
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38CE#FFFFFF#000000##FFFFFF
##9A38CE1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#1D6BCB
Tritanopia (blue-blind)
#935A80
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a38ce;
/* rgb */ color: rgb(154, 56, 206);
/* oklch */ color: oklch(54.9% 0.223 310.9);
Tailwind
colors: {
  custom: {
    50: '#bc78de',
    500: '#9a38ce',
    950: '#000000',
  },
}
SCSS
$custom: #9a38ce;
$custom-light: #bc78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38ce",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 279.2,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54944,
    "c": 0.22297,
    "h": 310.9
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

primary
#9A38CE
secondary
#A7D290
accent
#E4447B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A38CE

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

Preview Lab → · Contrast checker → · Palette generator →

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