#8B38C6#8B38C6

#8B38C6 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.211 H 307.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8B38C6
RGBrgb(139, 56, 198)
HSLhsl(275, 56%, 50%)
HSVhsv(275, 72%, 78%)
CMYKcmyk(29.8%, 71.7%, 0%, 22.4%)
CIE-LABlab(41.84, 58.87, -59.21)
CIE-LCHlch(41.84, 83.49, 314.83°)
OKLaboklab(52.48% 0.1277 -0.1681)
OKLCHoklch(52.48% 0.211 307.2)
XYZxyz(22.2525, 12.3948, 54.6353)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B38C6 #73C638
analogous
#4438C6 #8B38C6 #C638BA
triadic
#8B38C6 #C68B38 #38C68B
tetradic
#8B38C6 #C64438 #73C638 #38BAC6
square
#8B38C6 #C64438 #73C638 #38BAC6
split-complementary
#8B38C6 #BAC638 #38C644
monochromatic
#481D67 #6A2B96 #8B38C6 #A767D4 #C397E2

Accessibility & contrast

On white

6.04
#8B38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8B38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B38C6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B38C6#FFFFFF#000000##FFFFFF
##8B38C61.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#81597C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8b38c6;
/* rgb */ color: rgb(139, 56, 198);
/* oklch */ color: oklch(52.5% 0.211 307.2);
Tailwind
colors: {
  custom: {
    50: '#b276d8',
    500: '#8b38c6',
    950: '#000000',
  },
}
SCSS
$custom: #8b38c6;
$custom-light: #b276d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b38c6",
  "rgb": {
    "r": 139,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 275.07,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52479,
    "c": 0.21105,
    "h": 307.2
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#8B38C6
secondary
#A7CD8D
accent
#DF4987
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8B38C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8B38C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva