#9A38CF#9A38CF

#9A38CF is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 55.0% C 0.224 H 310.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9A38CF
RGBrgb(154, 56, 207)
HSLhsl(279, 61%, 52%)
HSVhsv(279, 73%, 81%)
CMYKcmyk(25.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(44.52, 63.70, -59.97)
CIE-LCHlch(44.52, 87.49, 316.73°)
OKLaboklab(55.02% 0.146 -0.1698)
OKLCHoklch(55.02% 0.224 310.7)
XYZxyz(26.0009, 14.2040, 60.3913)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38CF #6DCF38
analogous
#4F38CF #9A38CF #CF38B9
triadic
#9A38CF #CF9A38 #38CF9A
tetradic
#9A38CF #CF4F38 #6DCF38 #38B9CF
square
#9A38CF #CF4F38 #6DCF38 #38B9CF
split-complementary
#9A38CF #B9CF38 #38CF4F
monochromatic
#531B71 #7727A3 #9A38CF #B369DB #CC9BE7

Accessibility & contrast

On white

5.47
#9A38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9A38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38CF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38CF#FFFFFF#000000##FFFFFF
##9A38CF1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#1A6BCC
Tritanopia (blue-blind)
#935B81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a38cf;
/* rgb */ color: rgb(154, 56, 207);
/* oklch */ color: oklch(55.0% 0.224 310.7);
Tailwind
colors: {
  custom: {
    50: '#bd78de',
    500: '#9a38cf',
    950: '#000000',
  },
}
SCSS
$custom: #9a38cf;
$custom-light: #bd78de;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38cf",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 278.94,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55015,
    "c": 0.2239,
    "h": 310.7
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#9A38CF
secondary
#A8D390
accent
#E4447C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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