#8838D1#8838D1

#8838D1 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.9% C 0.221 H 303.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8838D1
RGBrgb(136, 56, 209)
HSLhsl(271, 62%, 52%)
HSVhsv(271, 73%, 82%)
CMYKcmyk(34.9%, 73.2%, 0%, 18%)
CIE-LABlab(42.26, 60.81, -64.92)
CIE-LCHlch(42.26, 88.95, 313.13°)
OKLaboklab(52.95% 0.1216 -0.1849)
OKLCHoklch(52.95% 0.221 303.3)
XYZxyz(23.0734, 12.6660, 61.5385)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8838D1 #81D138
analogous
#3C38D1 #8838D1 #D138CD
triadic
#8838D1 #D18838 #38D188
tetradic
#8838D1 #D13C38 #81D138 #38CDD1
square
#8838D1 #D13C38 #81D138 #38CDD1
split-complementary
#8838D1 #CDD138 #38D13C
monochromatic
#491B74 #6926A6 #8838D1 #A66ADC #C39BE8

Accessibility & contrast

On white

5.94
#8838D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8838D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8838D1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8838D1#FFFFFF#000000##FFFFFF
##8838D11.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#795E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8838d1;
/* rgb */ color: rgb(136, 56, 209);
/* oklch */ color: oklch(52.9% 0.221 303.3);
Tailwind
colors: {
  custom: {
    50: '#b176e0',
    500: '#8838d1',
    950: '#000000',
  },
}
SCSS
$custom: #8838d1;
$custom-light: #b176e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8838d1",
  "rgb": {
    "r": 136,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 271.373,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52947,
    "c": 0.22134,
    "h": 303.3
  },
  "luminance": 0.12666
}

Semantic roles & 50–950 ramp

primary
#8838D1
secondary
#B1D491
accent
#E64290
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8838D1

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

Preview Lab → · Contrast checker → · Palette generator →

#8838D1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva