#9A338A#9A338A

#9A338A is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.170 H 334.6°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#9A338A
RGBrgb(154, 51, 138)
HSLhsl(309, 50%, 40%)
HSVhsv(309, 67%, 60%)
CMYKcmyk(0%, 66.9%, 10.4%, 39.6%)
CIE-LABlab(39.71, 52.75, -26.70)
CIE-LCHlch(39.71, 59.12, 333.15°)
OKLaboklab(50.24% 0.1532 -0.0729)
OKLCHoklch(50.24% 0.17 334.6)
XYZxyz(19.0979, 11.0742, 25.1715)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A338A #339A43
analogous
#76339A #9A338A #9A3357
triadic
#9A338A #8A9A33 #338A9A
tetradic
#9A338A #9A7633 #339A43 #33579A
square
#9A338A #9A7633 #339A43 #33579A
split-complementary
#9A338A #579A33 #339A76
monochromatic
#3E1538 #6C2461 #9A338A #C248AF #D276C3

Accessibility & contrast

On white

6.53
#9A338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9A338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A338A
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A338A#FFFFFF#000000##FFFFFF
##9A338A1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#A13A5A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a338a;
/* rgb */ color: rgb(154, 51, 138);
/* oklch */ color: oklch(50.2% 0.170 334.6);
Tailwind
colors: {
  custom: {
    50: '#bb73ac',
    500: '#9a338a',
    950: '#000000',
  },
}
SCSS
$custom: #9a338a;
$custom-light: #bb73ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a338a",
  "rgb": {
    "r": 154,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 309.32,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50243,
    "c": 0.16963,
    "h": 334.6
  },
  "luminance": 0.11073
}

Semantic roles & 50–950 ramp

primary
#9A338A
secondary
#6FBA7B
accent
#DA644E
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A338A

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

Preview Lab → · Contrast checker → · Palette generator →

#9A338A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva