#9338CA#9338CA

#9338CA is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.217 H 309.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9338CA
RGBrgb(147, 56, 202)
HSLhsl(277, 58%, 51%)
HSVhsv(277, 72%, 79%)
CMYKcmyk(27.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(43.21, 61.29, -59.26)
CIE-LCHlch(43.21, 85.26, 315.96°)
OKLaboklab(53.77% 0.1376 -0.1679)
OKLCHoklch(53.77% 0.217 309.3)
XYZxyz(24.1053, 13.2961, 57.1622)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338CA #6FCA38
analogous
#4A38CA #9338CA #CA38B8
triadic
#9338CA #CA9338 #38CA93
tetradic
#9338CA #CA4A38 #6FCA38 #38B8CA
square
#9338CA #CA4A38 #6FCA38 #38B8CA
split-complementary
#9338CA #B8CA38 #38CA4A
monochromatic
#4D1D6B #70299B #9338CA #AD68D7 #C799E4

Accessibility & contrast

On white

5.74
#9338CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9338CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338CA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338CA#FFFFFF#000000##FFFFFF
##9338CA1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#1367C7
Tritanopia (blue-blind)
#8B5A7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9338ca;
/* rgb */ color: rgb(147, 56, 202);
/* oklch */ color: oklch(53.8% 0.217 309.3);
Tailwind
colors: {
  custom: {
    50: '#b777db',
    500: '#9338ca',
    950: '#000000',
  },
}
SCSS
$custom: #9338ca;
$custom-light: #b777db;
$custom-dark: #000000;
JSON
{
  "hex": "#9338ca",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 277.397,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53769,
    "c": 0.21713,
    "h": 309.3
  },
  "luminance": 0.13296
}

Semantic roles & 50–950 ramp

primary
#9338CA
secondary
#A7CF8E
accent
#E14781
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9338CA

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

Preview Lab → · Contrast checker → · Palette generator →

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