#9838C2#9838C2

#9838C2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.211 H 313.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9838C2
RGBrgb(152, 56, 194)
HSLhsl(282, 55%, 49%)
HSVhsv(282, 71%, 76%)
CMYKcmyk(21.6%, 71.1%, 0%, 23.9%)
CIE-LABlab(43.36, 60.61, -54.33)
CIE-LCHlch(43.36, 81.39, 318.12°)
OKLaboklab(53.85% 0.1451 -0.1533)
OKLCHoklch(53.85% 0.211 313.4)
XYZxyz(24.0990, 13.3995, 52.3454)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838C2 #62C238
analogous
#5338C2 #9838C2 #C238A7
triadic
#9838C2 #C29838 #38C298
tetradic
#9838C2 #C25338 #62C238 #38A7C2
square
#9838C2 #C25338 #62C238 #38A7C2
split-complementary
#9838C2 #A7C238 #38C253
monochromatic
#4E1D63 #732A93 #9838C2 #B165D2 #C994E0

Accessibility & contrast

On white

5.71
#9838C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9838C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838C2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838C2#FFFFFF#000000##FFFFFF
##9838C21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#2D69BF
Tritanopia (blue-blind)
#945579
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9838c2;
/* rgb */ color: rgb(152, 56, 194);
/* oklch */ color: oklch(53.8% 0.211 313.4);
Tailwind
colors: {
  custom: {
    50: '#ba77d5',
    500: '#9838c2',
    950: '#000000',
  },
}
SCSS
$custom: #9838c2;
$custom-light: #ba77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9838c2",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 281.739,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5385,
    "c": 0.21112,
    "h": 313.4
  },
  "luminance": 0.13399
}

Semantic roles & 50–950 ramp

primary
#9838C2
secondary
#9ECB8A
accent
#DF4977
background
#FBF7FD
surface
#F7EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9838C2

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

Preview Lab → · Contrast checker → · Palette generator →

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