#9A38BC#9A38BC

#9A38BC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.206 H 316.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9A38BC
RGBrgb(154, 56, 188)
HSLhsl(285, 54%, 48%)
HSVhsv(285, 70%, 74%)
CMYKcmyk(18.1%, 70.2%, 0%, 26.3%)
CIE-LABlab(43.26, 59.81, -50.98)
CIE-LCHlch(43.26, 78.58, 319.56°)
OKLaboklab(53.71% 0.1482 -0.1434)
OKLCHoklch(53.71% 0.206 316)
XYZxyz(23.8163, 13.3301, 48.8856)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38BC #5ABC38
analogous
#5838BC #9A38BC #BC389C
triadic
#9A38BC #BC9A38 #38BC9A
tetradic
#9A38BC #BC5838 #5ABC38 #389CBC
square
#9A38BC #BC5838 #5ABC38 #389CBC
split-complementary
#9A38BC #9CBC38 #38BC58
monochromatic
#4D1C5E #732A8D #9A38BC #B361D0 #CA90DE

Accessibility & contrast

On white

5.73
#9A38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9A38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38BC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38BC#FFFFFF#000000##FFFFFF
##9A38BC1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#3769B9
Tritanopia (blue-blind)
#985376
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9a38bc;
/* rgb */ color: rgb(154, 56, 188);
/* oklch */ color: oklch(53.7% 0.206 316.0);
Tailwind
colors: {
  custom: {
    50: '#bc77d1',
    500: '#9a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #9a38bc;
$custom-light: #bc77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38bc",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 284.545,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53712,
    "c": 0.20625,
    "h": 316
  },
  "luminance": 0.13329
}

Semantic roles & 50–950 ramp

primary
#9A38BC
secondary
#98C987
accent
#DD4A70
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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