#9836CF#9836CF

#9836CF is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.6% C 0.226 H 310.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9836CF
RGBrgb(152, 54, 207)
HSLhsl(278, 61%, 51%)
HSVhsv(278, 74%, 81%)
CMYKcmyk(26.6%, 73.9%, 0%, 18.8%)
CIE-LABlab(43.97, 64.10, -60.88)
CIE-LCHlch(43.97, 88.40, 316.48°)
OKLaboklab(54.57% 0.1452 -0.1725)
OKLCHoklch(54.57% 0.226 310.1)
XYZxyz(25.5283, 13.8193, 60.3420)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9836CF #6DCF36
analogous
#4B36CF #9836CF #CF36BA
triadic
#9836CF #CF9836 #36CF98
tetradic
#9836CF #CF4B36 #6DCF36 #36BACF
square
#9836CF #CF4B36 #6DCF36 #36BACF
split-complementary
#9836CF #BACF36 #36CF4B
monochromatic
#511B70 #7527A1 #9836CF #B167DB #CB99E7

Accessibility & contrast

On white

5.58
#9836CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9836CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9836CF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9836CF#FFFFFF#000000##FFFFFF
##9836CF1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0F69CC
Tritanopia (blue-blind)
#905A80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9836cf;
/* rgb */ color: rgb(152, 54, 207);
/* oklch */ color: oklch(54.6% 0.226 310.1);
Tailwind
colors: {
  custom: {
    50: '#bb77df',
    500: '#9836cf',
    950: '#000000',
  },
}
SCSS
$custom: #9836cf;
$custom-light: #bb77df;
$custom-dark: #000000;
JSON
{
  "hex": "#9836cf",
  "rgb": {
    "r": 152,
    "g": 54,
    "b": 207
  },
  "hsl": {
    "h": 278.431,
    "s": 61.446,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.2255,
    "h": 310.1
  },
  "luminance": 0.13819
}

Semantic roles & 50–950 ramp

primary
#9836CF
secondary
#A7D28F
accent
#E5437D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9836CF

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

Preview Lab → · Contrast checker → · Palette generator →

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