#9338CD#9338CD

#9338CD is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.0% C 0.220 H 308.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9338CD
RGBrgb(147, 56, 205)
HSLhsl(277, 60%, 51%)
HSVhsv(277, 73%, 80%)
CMYKcmyk(28.3%, 72.7%, 0%, 19.6%)
CIE-LABlab(43.42, 61.94, -60.65)
CIE-LCHlch(43.42, 86.69, 315.60°)
OKLaboklab(53.99% 0.1371 -0.172)
OKLCHoklch(53.99% 0.22 308.6)
XYZxyz(24.4640, 13.4396, 59.0511)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9338CD #72CD38
analogous
#4838CD #9338CD #CD38BC
triadic
#9338CD #CD9338 #38CD93
tetradic
#9338CD #CD4838 #72CD38 #38BCCD
square
#9338CD #CD4838 #72CD38 #38BCCD
split-complementary
#9338CD #BCCD38 #38CD48
monochromatic
#4E1C6F #7128A0 #9338CD #AE69D9 #C89AE6

Accessibility & contrast

On white

5.69
#9338CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9338CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9338CD
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9338CD#FFFFFF#000000##FFFFFF
##9338CD1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0768CA
Tritanopia (blue-blind)
#8A5B80
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9338cd;
/* rgb */ color: rgb(147, 56, 205);
/* oklch */ color: oklch(54.0% 0.220 308.6);
Tailwind
colors: {
  custom: {
    50: '#b877dd',
    500: '#9338cd',
    950: '#000000',
  },
}
SCSS
$custom: #9338cd;
$custom-light: #b877dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9338cd",
  "rgb": {
    "r": 147,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 276.644,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53986,
    "c": 0.22001,
    "h": 308.6
  },
  "luminance": 0.13439
}

Semantic roles & 50–950 ramp

primary
#9338CD
secondary
#A9D18F
accent
#E34582
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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