#9338CB#9338CB

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

Color values

HEX#9338CB
RGBrgb(147, 56, 203)
HSLhsl(277, 59%, 51%)
HSVhsv(277, 72%, 80%)
CMYKcmyk(27.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(43.28, 61.51, -59.73)
CIE-LCHlch(43.28, 85.74, 315.84°)
OKLaboklab(53.84% 0.1375 -0.1693)
OKLCHoklch(53.84% 0.218 309.1)
XYZxyz(24.2241, 13.3436, 57.7878)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338CB #70CB38
analogous
#4938CB #9338CB #CB38B9
triadic
#9338CB #CB9338 #38CB93
tetradic
#9338CB #CB4938 #70CB38 #38B9CB
square
#9338CB #CB4938 #70CB38 #38B9CB
split-complementary
#9338CB #B9CB38 #38CB49
monochromatic
#4E1C6C #71299D #9338CB #AD69D8 #C899E4

Accessibility & contrast

On white

5.72
#9338CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#9338CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338CB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338CB#FFFFFF#000000##FFFFFF
##9338CB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#1067C8
Tritanopia (blue-blind)
#8B5A7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9338cb;
/* rgb */ color: rgb(147, 56, 203);
/* oklch */ color: oklch(53.8% 0.218 309.1);
Tailwind
colors: {
  custom: {
    50: '#b877dc',
    500: '#9338cb',
    950: '#000000',
  },
}
SCSS
$custom: #9338cb;
$custom-light: #b877dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9338cb",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 277.143,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.21809,
    "h": 309.1
  },
  "luminance": 0.13343
}

Semantic roles & 50–950 ramp

primary
#9338CB
secondary
#A8D08F
accent
#E24681
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9338CB

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

Preview Lab → · Contrast checker → · Palette generator →

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