#9A38C4#9A38C4

#9A38C4 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.214 H 313.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#9A38C4
RGBrgb(154, 56, 196)
HSLhsl(282, 56%, 49%)
HSVhsv(282, 71%, 77%)
CMYKcmyk(21.4%, 71.4%, 0%, 23.1%)
CIE-LABlab(43.78, 61.42, -54.81)
CIE-LCHlch(43.78, 82.32, 318.26°)
OKLaboklab(54.25% 0.1474 -0.1546)
OKLCHoklch(54.25% 0.214 313.6)
XYZxyz(24.7027, 13.6847, 53.5540)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38C4 #62C438
analogous
#5438C4 #9A38C4 #C438A8
triadic
#9A38C4 #C49A38 #38C49A
tetradic
#9A38C4 #C45438 #62C438 #38A8C4
square
#9A38C4 #C45438 #62C438 #38A8C4
split-complementary
#9A38C4 #A8C438 #38C454
monochromatic
#4F1D65 #752A94 #9A38C4 #B266D3 #CA96E1

Accessibility & contrast

On white

5.62
#9A38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9A38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38C4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38C4#FFFFFF#000000##FFFFFF
##9A38C41.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#2E6AC1
Tritanopia (blue-blind)
#96567B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a38c4;
/* rgb */ color: rgb(154, 56, 196);
/* oklch */ color: oklch(54.2% 0.214 313.6);
Tailwind
colors: {
  custom: {
    50: '#bc77d7',
    500: '#9a38c4',
    950: '#000000',
  },
}
SCSS
$custom: #9a38c4;
$custom-light: #bc77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38c4",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 282,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.54249,
    "c": 0.21366,
    "h": 313.6
  },
  "luminance": 0.13684
}

Semantic roles & 50–950 ramp

primary
#9A38C4
secondary
#9FCC8C
accent
#DF4976
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9A38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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