#8B38BB#8B38BB

#8B38BB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.200 H 310.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8B38BB
RGBrgb(139, 56, 187)
HSLhsl(278, 54%, 48%)
HSVhsv(278, 70%, 73%)
CMYKcmyk(25.7%, 70.1%, 0%, 26.7%)
CIE-LABlab(41.07, 56.44, -54.03)
CIE-LCHlch(41.07, 78.13, 316.25°)
OKLaboklab(51.69% 0.1292 -0.1529)
OKLCHoklch(51.69% 0.2 310.2)
XYZxyz(21.0295, 11.9056, 48.1943)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B38BB #68BB38
analogous
#4938BB #8B38BB #BB38A9
triadic
#8B38BB #BB8B38 #38BB8B
tetradic
#8B38BB #BB4938 #68BB38 #38A9BB
square
#8B38BB #BB4938 #68BB38 #38A9BB
split-complementary
#8B38BB #A9BB38 #38BB49
monochromatic
#451C5D #682A8C #8B38BB #A761D0 #C190DE

Accessibility & contrast

On white

6.21
#8B38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8B38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B38BB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B38BB#FFFFFF#000000##FFFFFF
##8B38BB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2162B8
Tritanopia (blue-blind)
#845576
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8b38bb;
/* rgb */ color: rgb(139, 56, 187);
/* oklch */ color: oklch(51.7% 0.200 310.2);
Tailwind
colors: {
  custom: {
    50: '#b175d0',
    500: '#8b38bb',
    950: '#000000',
  },
}
SCSS
$custom: #8b38bb;
$custom-light: #b175d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b38bb",
  "rgb": {
    "r": 139,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 278.015,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51687,
    "c": 0.20013,
    "h": 310.2
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

primary
#8B38BB
secondary
#9FC886
accent
#DD4B80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8B38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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