#9A38D0#9A38D0

#9A38D0 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.1% C 0.225 H 310.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9A38D0
RGBrgb(154, 56, 208)
HSLhsl(279, 62%, 52%)
HSVhsv(279, 73%, 82%)
CMYKcmyk(26%, 73.1%, 0%, 18.4%)
CIE-LABlab(44.59, 63.91, -60.44)
CIE-LCHlch(44.59, 87.96, 316.60°)
OKLaboklab(55.09% 0.1458 -0.1712)
OKLCHoklch(55.09% 0.225 310.4)
XYZxyz(26.1236, 14.2530, 61.0372)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38D0 #6ED038
analogous
#4E38D0 #9A38D0 #D038BA
triadic
#9A38D0 #D09A38 #38D09A
tetradic
#9A38D0 #D04E38 #6ED038 #38BAD0
square
#9A38D0 #D04E38 #6ED038 #38BAD0
split-complementary
#9A38D0 #BAD038 #38D04E
monochromatic
#531B73 #7827A4 #9A38D0 #B36ADC #CC9BE7

Accessibility & contrast

On white

5.45
#9A38D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#9A38D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38D0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38D0#FFFFFF#000000##FFFFFF
##9A38D01.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#186BCD
Tritanopia (blue-blind)
#935B81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a38d0;
/* rgb */ color: rgb(154, 56, 208);
/* oklch */ color: oklch(55.1% 0.225 310.4);
Tailwind
colors: {
  custom: {
    50: '#bd78df',
    500: '#9a38d0',
    950: '#000000',
  },
}
SCSS
$custom: #9a38d0;
$custom-light: #bd78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38d0",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 278.684,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55087,
    "c": 0.22484,
    "h": 310.4
  },
  "luminance": 0.14252
}

Semantic roles & 50–950 ramp

primary
#9A38D0
secondary
#A8D391
accent
#E5437C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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