#9838CF#9838CF

#9838CF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.8% C 0.223 H 309.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9838CF
RGBrgb(152, 56, 207)
HSLhsl(278, 61%, 52%)
HSVhsv(278, 73%, 81%)
CMYKcmyk(26.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(44.25, 63.32, -60.44)
CIE-LCHlch(44.25, 87.53, 316.33°)
OKLaboklab(54.76% 0.1434 -0.1712)
OKLCHoklch(54.76% 0.223 309.9)
XYZxyz(25.6233, 14.0093, 60.3736)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838CF #6FCF38
analogous
#4D38CF #9838CF #CF38BB
triadic
#9838CF #CF9838 #38CF98
tetradic
#9838CF #CF4D38 #6FCF38 #38BBCF
square
#9838CF #CF4D38 #6FCF38 #38BBCF
split-complementary
#9838CF #BBCF38 #38CF4D
monochromatic
#521B71 #7627A3 #9838CF #B269DB #CB9BE7

Accessibility & contrast

On white

5.52
#9838CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9838CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838CF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838CF#FFFFFF#000000##FFFFFF
##9838CF1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#146ACC
Tritanopia (blue-blind)
#905B81
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9838cf;
/* rgb */ color: rgb(152, 56, 207);
/* oklch */ color: oklch(54.8% 0.223 309.9);
Tailwind
colors: {
  custom: {
    50: '#bb78df',
    500: '#9838cf',
    950: '#000000',
  },
}
SCSS
$custom: #9838cf;
$custom-light: #bb78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9838cf",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 278.146,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54761,
    "c": 0.22332,
    "h": 309.9
  },
  "luminance": 0.14009
}

Semantic roles & 50–950 ramp

primary
#9838CF
secondary
#A8D390
accent
#E4447E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838CF

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

Preview Lab → · Contrast checker → · Palette generator →

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