#9338C5#9338C5

#9338C5 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.4% C 0.212 H 310.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9338C5
RGBrgb(147, 56, 197)
HSLhsl(279, 56%, 50%)
HSVhsv(279, 72%, 77%)
CMYKcmyk(25.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(42.86, 60.22, -56.92)
CIE-LCHlch(42.86, 82.87, 316.61°)
OKLaboklab(53.41% 0.1384 -0.1611)
OKLCHoklch(53.41% 0.212 310.7)
XYZxyz(23.5229, 13.0632, 54.0948)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338C5 #6AC538
analogous
#4C38C5 #9338C5 #C538B1
triadic
#9338C5 #C59338 #38C593
tetradic
#9338C5 #C54C38 #6AC538 #38B1C5
square
#9338C5 #C54C38 #6AC538 #38B1C5
split-complementary
#9338C5 #B1C538 #38C54C
monochromatic
#4C1D66 #6F2A95 #9338C5 #AD67D4 #C796E1

Accessibility & contrast

On white

5.81
#9338C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9338C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338C5
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338C5#FFFFFF#000000##FFFFFF
##9338C51.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#1F67C2
Tritanopia (blue-blind)
#8C577B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9338c5;
/* rgb */ color: rgb(147, 56, 197);
/* oklch */ color: oklch(53.4% 0.212 310.7);
Tailwind
colors: {
  custom: {
    50: '#b777d7',
    500: '#9338c5',
    950: '#000000',
  },
}
SCSS
$custom: #9338c5;
$custom-light: #b777d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9338c5",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 278.723,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.21234,
    "h": 310.7
  },
  "luminance": 0.13063
}

Semantic roles & 50–950 ramp

primary
#9338C5
secondary
#A3CD8C
accent
#DF497E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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