#8B38CB#8B38CB

#8B38CB is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.8% C 0.216 H 305.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8B38CB
RGBrgb(139, 56, 203)
HSLhsl(274, 59%, 51%)
HSVhsv(274, 72%, 80%)
CMYKcmyk(31.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(42.20, 59.99, -61.52)
CIE-LCHlch(42.20, 85.93, 314.28°)
OKLaboklab(52.85% 0.1268 -0.1749)
OKLCHoklch(52.85% 0.216 305.9)
XYZxyz(22.8388, 12.6293, 57.7229)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B38CB #78CB38
analogous
#4138CB #8B38CB #CB38C1
triadic
#8B38CB #CB8B38 #38CB8B
tetradic
#8B38CB #CB4138 #78CB38 #38C1CB
square
#8B38CB #CB4138 #78CB38 #38C1CB
split-complementary
#8B38CB #C1CB38 #38CB41
monochromatic
#491C6C #6A299D #8B38CB #A769D8 #C499E4

Accessibility & contrast

On white

5.96
#8B38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8B38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B38CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B38CB#FFFFFF#000000##FFFFFF
##8B38CB1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#805B7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b38cb;
/* rgb */ color: rgb(139, 56, 203);
/* oklch */ color: oklch(52.8% 0.216 305.9);
Tailwind
colors: {
  custom: {
    50: '#b276dc',
    500: '#8b38cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b38cb;
$custom-light: #b276dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b38cb",
  "rgb": {
    "r": 139,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 273.878,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5285,
    "c": 0.21601,
    "h": 305.9
  },
  "luminance": 0.12629
}

Semantic roles & 50–950 ramp

primary
#8B38CB
secondary
#ABD08F
accent
#E2468A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8B38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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