#9A38D9#9A38D9

#9A38D9 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.7% C 0.233 H 308.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9A38D9
RGBrgb(154, 56, 217)
HSLhsl(277, 68%, 54%)
HSVhsv(277, 74%, 85%)
CMYKcmyk(29%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.23, 65.81, -64.57)
CIE-LCHlch(45.23, 92.20, 315.55°)
OKLaboklab(55.74% 0.1442 -0.1833)
OKLCHoklch(55.74% 0.233 308.2)
XYZxyz(27.2624, 14.7086, 67.0350)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38D9 #77D938
analogous
#4938D9 #9A38D9 #D938C7
triadic
#9A38D9 #D99A38 #38D99A
tetradic
#9A38D9 #D94938 #77D938 #38C7D9
square
#9A38D9 #D94938 #77D938 #38C7D9
split-complementary
#9A38D9 #C7D938 #38D949
monochromatic
#56187E #7A22B2 #9A38D9 #B46BE3 #CE9FED

Accessibility & contrast

On white

5.33
#9A38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9A38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38D9
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38D9#FFFFFF#000000##FFFFFF
##9A38D91.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DE
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#905F86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9a38d9;
/* rgb */ color: rgb(154, 56, 217);
/* oklch */ color: oklch(55.7% 0.233 308.2);
Tailwind
colors: {
  custom: {
    50: '#bd78e6',
    500: '#9a38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9a38d9;
$custom-light: #bd78e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38d9",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 276.522,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55739,
    "c": 0.23325,
    "h": 308.2
  },
  "luminance": 0.14708
}

Semantic roles & 50–950 ramp

primary
#9A38D9
secondary
#AFD994
accent
#EB3D81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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