#9338CC#9338CC

#9338CC is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.9% C 0.219 H 308.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9338CC
RGBrgb(147, 56, 204)
HSLhsl(277, 59%, 51%)
HSVhsv(277, 73%, 80%)
CMYKcmyk(27.9%, 72.5%, 0%, 20%)
CIE-LABlab(43.35, 61.72, -60.19)
CIE-LCHlch(43.35, 86.21, 315.72°)
OKLaboklab(53.91% 0.1373 -0.1707)
OKLCHoklch(53.91% 0.219 308.8)
XYZxyz(24.3437, 13.3915, 58.4174)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338CC #71CC38
analogous
#4938CC #9338CC #CC38BB
triadic
#9338CC #CC9338 #38CC93
tetradic
#9338CC #CC4938 #71CC38 #38BBCC
square
#9338CC #CC4938 #71CC38 #38BBCC
split-complementary
#9338CC #BBCC38 #38CC49
monochromatic
#4E1C6E #71299E #9338CC #AD69D8 #C899E5

Accessibility & contrast

On white

5.71
#9338CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9338CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338CC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338CC#FFFFFF#000000##FFFFFF
##9338CC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0C67C9
Tritanopia (blue-blind)
#8A5A7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9338cc;
/* rgb */ color: rgb(147, 56, 204);
/* oklch */ color: oklch(53.9% 0.219 308.8);
Tailwind
colors: {
  custom: {
    50: '#b877dc',
    500: '#9338cc',
    950: '#000000',
  },
}
SCSS
$custom: #9338cc;
$custom-light: #b877dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9338cc",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 276.892,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53914,
    "c": 0.21905,
    "h": 308.8
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#9338CC
secondary
#A8D18F
accent
#E24582
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9338CC

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

Preview Lab → · Contrast checker → · Palette generator →

#9338CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva