#9838CA#9838CA

#9838CA is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.4% C 0.219 H 311.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9838CA
RGBrgb(152, 56, 202)
HSLhsl(279, 58%, 51%)
HSVhsv(279, 72%, 79%)
CMYKcmyk(24.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(43.90, 62.27, -58.11)
CIE-LCHlch(43.90, 85.17, 316.98°)
OKLaboklab(54.41% 0.1441 -0.1644)
OKLCHoklch(54.41% 0.219 311.2)
XYZxyz(25.0217, 13.7686, 57.2052)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838CA #6ACA38
analogous
#4F38CA #9838CA #CA38B3
triadic
#9838CA #CA9838 #38CA98
tetradic
#9838CA #CA4F38 #6ACA38 #38B3CA
square
#9838CA #CA4F38 #6ACA38 #38B3CA
split-complementary
#9838CA #B3CA38 #38CA4F
monochromatic
#501D6B #74299B #9838CA #B168D7 #CA99E4

Accessibility & contrast

On white

5.59
#9838CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9838CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838CA
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838CA#FFFFFF#000000##FFFFFF
##9838CA1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#2069C7
Tritanopia (blue-blind)
#92597E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9838ca;
/* rgb */ color: rgb(152, 56, 202);
/* oklch */ color: oklch(54.4% 0.219 311.2);
Tailwind
colors: {
  custom: {
    50: '#bb77db',
    500: '#9838ca',
    950: '#000000',
  },
}
SCSS
$custom: #9838ca;
$custom-light: #bb77db;
$custom-dark: #000000;
JSON
{
  "hex": "#9838ca",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 279.452,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54405,
    "c": 0.21861,
    "h": 311.2
  },
  "luminance": 0.13768
}

Semantic roles & 50–950 ramp

primary
#9838CA
secondary
#A5CF8E
accent
#E1477C
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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