#8B38CA#8B38CA

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

Color values

HEX#8B38CA
RGBrgb(139, 56, 202)
HSLhsl(274, 58%, 51%)
HSVhsv(274, 72%, 79%)
CMYKcmyk(31.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(42.13, 59.76, -61.06)
CIE-LCHlch(42.13, 85.44, 314.38°)
OKLaboklab(52.78% 0.127 -0.1735)
OKLCHoklch(52.78% 0.215 306.2)
XYZxyz(22.7200, 12.5818, 57.0973)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B38CA #77CA38
analogous
#4238CA #8B38CA #CA38C0
triadic
#8B38CA #CA8B38 #38CA8B
tetradic
#8B38CA #CA4238 #77CA38 #38C0CA
square
#8B38CA #CA4238 #77CA38 #38C0CA
split-complementary
#8B38CA #C0CA38 #38CA42
monochromatic
#491D6B #6A299B #8B38CA #A768D7 #C399E4

Accessibility & contrast

On white

5.97
#8B38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8B38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B38CA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B38CA#FFFFFF#000000##FFFFFF
##8B38CA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#805B7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8b38ca;
/* rgb */ color: rgb(139, 56, 202);
/* oklch */ color: oklch(52.8% 0.215 306.2);
Tailwind
colors: {
  custom: {
    50: '#b276db',
    500: '#8b38ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b38ca;
$custom-light: #b276db;
$custom-dark: #000000;
JSON
{
  "hex": "#8b38ca",
  "rgb": {
    "r": 139,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 274.11,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52776,
    "c": 0.21501,
    "h": 306.2
  },
  "luminance": 0.12582
}

Semantic roles & 50–950 ramp

primary
#8B38CA
secondary
#AACF8E
accent
#E14789
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8B38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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