#9838DE#9838DE

#9838DE is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.9% C 0.237 H 306.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9838DE
RGBrgb(152, 56, 222)
HSLhsl(275, 72%, 55%)
HSVhsv(275, 75%, 87%)
CMYKcmyk(31.5%, 74.8%, 0%, 12.9%)
CIE-LABlab(45.33, 66.53, -67.28)
CIE-LCHlch(45.33, 94.62, 314.68°)
OKLaboklab(55.86% 0.1406 -0.1913)
OKLCHoklch(55.86% 0.237 306.3)
XYZxyz(27.5450, 14.7779, 70.4944)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9838DE #7EDE38
analogous
#4538DE #9838DE #DE38D1
triadic
#9838DE #DE9838 #38DE98
tetradic
#9838DE #DE4538 #7EDE38 #38D1DE
square
#9838DE #DE4538 #7EDE38 #38D1DE
split-complementary
#9838DE #D1DE38 #38DE45
monochromatic
#571685 #791FBA #9838DE #B36CE7 #CEA1EF

Accessibility & contrast

On white

5.31
#9838DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#9838DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9838DE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9838DE#FFFFFF#000000##FFFFFF
##9838DE1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E3
Deuteranopia (green-blind)
#006CDB
Tritanopia (blue-blind)
#8C6189
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9838de;
/* rgb */ color: rgb(152, 56, 222);
/* oklch */ color: oklch(55.9% 0.237 306.3);
Tailwind
colors: {
  custom: {
    50: '#bc78e9',
    500: '#9838de',
    950: '#000000',
  },
}
SCSS
$custom: #9838de;
$custom-light: #bc78e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9838de",
  "rgb": {
    "r": 152,
    "g": 56,
    "b": 222
  },
  "hsl": {
    "h": 274.699,
    "s": 71.552,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55865,
    "c": 0.23746,
    "h": 306.3
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#9838DE
secondary
#B3DC96
accent
#EE3A86
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9838DE

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

Preview Lab → · Contrast checker → · Palette generator →

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