#9338CF#9338CF

#9338CF is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.1% C 0.222 H 308.1°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#9338CF
RGBrgb(147, 56, 207)
HSLhsl(276, 61%, 52%)
HSVhsv(276, 73%, 81%)
CMYKcmyk(29%, 72.9%, 0%, 18.8%)
CIE-LABlab(43.56, 62.37, -61.58)
CIE-LCHlch(43.56, 87.65, 315.37°)
OKLaboklab(54.13% 0.1368 -0.1747)
OKLCHoklch(54.13% 0.222 308.1)
XYZxyz(24.7069, 13.5368, 60.3307)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338CF #74CF38
analogous
#4838CF #9338CF #CF38C0
triadic
#9338CF #CF9338 #38CF93
tetradic
#9338CF #CF4838 #74CF38 #38C0CF
square
#9338CF #CF4838 #74CF38 #38C0CF
split-complementary
#9338CF #C0CF38 #38CF48
monochromatic
#4F1B71 #7227A3 #9338CF #AE69DB #C99BE7

Accessibility & contrast

On white

5.66
#9338CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9338CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338CF
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338CF#FFFFFF#000000##FFFFFF
##9338CF1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#895C81
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9338cf;
/* rgb */ color: rgb(147, 56, 207);
/* oklch */ color: oklch(54.1% 0.222 308.1);
Tailwind
colors: {
  custom: {
    50: '#b877df',
    500: '#9338cf',
    950: '#000000',
  },
}
SCSS
$custom: #9338cf;
$custom-light: #b877df;
$custom-dark: #000000;
JSON
{
  "hex": "#9338cf",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 276.159,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.22193,
    "h": 308.1
  },
  "luminance": 0.13536
}

Semantic roles & 50–950 ramp

primary
#9338CF
secondary
#ABD390
accent
#E44483
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9338CF

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

Preview Lab → · Contrast checker → · Palette generator →

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