#9838CD#9838CD

#9838CD is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.6% C 0.221 H 310.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9838CD
RGBrgb(152, 56, 205)
HSLhsl(279, 60%, 51%)
HSVhsv(279, 73%, 80%)
CMYKcmyk(25.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(44.11, 62.90, -59.51)
CIE-LCHlch(44.11, 86.58, 316.59°)
OKLaboklab(54.62% 0.1437 -0.1685)
OKLCHoklch(54.62% 0.221 310.5)
XYZxyz(25.3804, 13.9121, 59.0941)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838CD #6DCD38
analogous
#4D38CD #9838CD #CD38B7
triadic
#9838CD #CD9838 #38CD98
tetradic
#9838CD #CD4D38 #6DCD38 #38B7CD
square
#9838CD #CD4D38 #6DCD38 #38B7CD
split-complementary
#9838CD #B7CD38 #38CD4D
monochromatic
#511C6F #7528A0 #9838CD #B169D9 #CB9AE6

Accessibility & contrast

On white

5.55
#9838CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9838CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838CD
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838CD#FFFFFF#000000##FFFFFF
##9838CD1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#1A6ACA
Tritanopia (blue-blind)
#915A80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9838cd;
/* rgb */ color: rgb(152, 56, 205);
/* oklch */ color: oklch(54.6% 0.221 310.5);
Tailwind
colors: {
  custom: {
    50: '#bb77dd',
    500: '#9838cd',
    950: '#000000',
  },
}
SCSS
$custom: #9838cd;
$custom-light: #bb77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9838cd",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 278.658,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54618,
    "c": 0.22143,
    "h": 310.5
  },
  "luminance": 0.13912
}

Semantic roles & 50–950 ramp

primary
#9838CD
secondary
#A7D18F
accent
#E3457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9838CD

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

Preview Lab → · Contrast checker → · Palette generator →

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