#9838AF#9838AF

#9838AF is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.6% C 0.193 H 319.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9838AF
RGBrgb(152, 56, 175)
HSLhsl(288, 52%, 45%)
HSVhsv(288, 68%, 69%)
CMYKcmyk(13.1%, 68%, 0%, 31.4%)
CIE-LABlab(42.15, 56.79, -45.11)
CIE-LCHlch(42.15, 72.53, 321.54°)
OKLaboklab(52.6% 0.1466 -0.1263)
OKLCHoklch(52.6% 0.193 319.3)
XYZxyz(22.0999, 12.5999, 41.8171)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838AF #4FAF38
analogous
#5C38AF #9838AF #AF388B
triadic
#9838AF #AF9838 #38AF98
tetradic
#9838AF #AF5C38 #4FAF38 #388BAF
square
#9838AF #AF5C38 #4FAF38 #388BAF
split-complementary
#9838AF #8BAF38 #38AF5C
monochromatic
#471A52 #702981 #9838AF #B55ACA #C988D9

Accessibility & contrast

On white

5.97
#9838AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9838AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838AF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838AF#FFFFFF#000000##FFFFFF
##9838AF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055DB2
Deuteranopia (green-blind)
#4067AC
Tritanopia (blue-blind)
#984E6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9838af;
/* rgb */ color: rgb(152, 56, 175);
/* oklch */ color: oklch(52.6% 0.193 319.3);
Tailwind
colors: {
  custom: {
    50: '#ba76c7',
    500: '#9838af',
    950: '#000000',
  },
}
SCSS
$custom: #9838af;
$custom-light: #ba76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#9838af",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 288.403,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52603,
    "c": 0.19349,
    "h": 319.3
  },
  "luminance": 0.12599
}

Semantic roles & 50–950 ramp

primary
#9838AF
secondary
#8DC380
accent
#DB4D68
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9838AF

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

Preview Lab → · Contrast checker → · Palette generator →

#9838AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva