#9835CB#9835CB

#9835CB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.2% C 0.223 H 311.2°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9835CB
RGBrgb(152, 53, 203)
HSLhsl(280, 59%, 50%)
HSVhsv(280, 74%, 80%)
CMYKcmyk(25.1%, 73.9%, 0%, 20.4%)
CIE-LABlab(43.56, 63.65, -59.24)
CIE-LCHlch(43.56, 86.95, 317.05°)
OKLaboklab(54.19% 0.1468 -0.1677)
OKLCHoklch(54.19% 0.223 311.2)
XYZxyz(24.9994, 13.5340, 57.7837)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9835CB #68CB35
analogous
#4D35CB #9835CB #CB35B3
triadic
#9835CB #CB9835 #35CB98
tetradic
#9835CB #CB4D35 #68CB35 #35B3CB
square
#9835CB #CB4D35 #68CB35 #35B3CB
split-complementary
#9835CB #B3CB35 #35CB4D
monochromatic
#4F1B6A #74289B #9835CB #B166D8 #CA96E4

Accessibility & contrast

On white

5.67
#9835CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9835CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9835CB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9835CB#FFFFFF#000000##FFFFFF
##9835CB1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#91587E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9835cb;
/* rgb */ color: rgb(152, 53, 203);
/* oklch */ color: oklch(54.2% 0.223 311.2);
Tailwind
colors: {
  custom: {
    50: '#bb76dc',
    500: '#9835cb',
    950: '#000000',
  },
}
SCSS
$custom: #9835cb;
$custom-light: #bb76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9835cb",
  "rgb": {
    "r": 152,
    "g": 53,
    "b": 203
  },
  "hsl": {
    "h": 279.6,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54185,
    "c": 0.22287,
    "h": 311.2
  },
  "luminance": 0.13533
}

Semantic roles & 50–950 ramp

primary
#9835CB
secondary
#A3CF8C
accent
#E2467B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9835CB

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

Preview Lab → · Contrast checker → · Palette generator →

#9835CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva