#8B38CC#8B38CC

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

Color values

HEX#8B38CC
RGBrgb(139, 56, 204)
HSLhsl(274, 59%, 51%)
HSVhsv(274, 73%, 80%)
CMYKcmyk(31.9%, 72.5%, 0%, 20%)
CIE-LABlab(42.27, 60.21, -61.98)
CIE-LCHlch(42.27, 86.42, 314.17°)
OKLaboklab(52.93% 0.1266 -0.1762)
OKLCHoklch(52.93% 0.217 305.7)
XYZxyz(22.9583, 12.6771, 58.3525)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B38CC #79CC38
analogous
#4138CC #8B38CC #CC38C3
triadic
#8B38CC #CC8B38 #38CC8B
tetradic
#8B38CC #CC4138 #79CC38 #38C3CC
square
#8B38CC #CC4138 #79CC38 #38C3CC
split-complementary
#8B38CC #C3CC38 #38CC41
monochromatic
#4A1C6E #6B299E #8B38CC #A769D8 #C499E5

Accessibility & contrast

On white

5.94
#8B38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8B38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B38CC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B38CC#FFFFFF#000000##FFFFFF
##8B38CC1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#7F5B7F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b38cc;
/* rgb */ color: rgb(139, 56, 204);
/* oklch */ color: oklch(52.9% 0.217 305.7);
Tailwind
colors: {
  custom: {
    50: '#b276dc',
    500: '#8b38cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b38cc;
$custom-light: #b276dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b38cc",
  "rgb": {
    "r": 139,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 273.649,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.217,
    "h": 305.7
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#8B38CC
secondary
#ACD18F
accent
#E2458A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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