#8A38BF#8A38BF

#8A38BF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.204 H 308.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A38BF
RGBrgb(138, 56, 191)
HSLhsl(276, 55%, 48%)
HSVhsv(276, 71%, 75%)
CMYKcmyk(27.7%, 70.7%, 0%, 25.1%)
CIE-LABlab(41.21, 57.11, -56.15)
CIE-LCHlch(41.21, 80.10, 315.49°)
OKLaboklab(51.85% 0.1274 -0.1591)
OKLCHoklch(51.85% 0.204 308.7)
XYZxyz(21.2975, 11.9936, 50.4732)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38BF #6DBF38
analogous
#4638BF #8A38BF #BF38B0
triadic
#8A38BF #BF8A38 #38BF8A
tetradic
#8A38BF #BF4638 #6DBF38 #38B0BF
square
#8A38BF #BF4638 #6DBF38 #38B0BF
split-complementary
#8A38BF #B0BF38 #38BF46
monochromatic
#461C60 #682A90 #8A38BF #A663D1 #C192DF

Accessibility & contrast

On white

6.18
#8A38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38BF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38BF#FFFFFF#000000##FFFFFF
##8A38BF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#1762BC
Tritanopia (blue-blind)
#825678
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a38bf;
/* rgb */ color: rgb(138, 56, 191);
/* oklch */ color: oklch(51.8% 0.204 308.7);
Tailwind
colors: {
  custom: {
    50: '#b176d3',
    500: '#8a38bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a38bf;
$custom-light: #b176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38bf",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 276.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51846,
    "c": 0.20381,
    "h": 308.7
  },
  "luminance": 0.11993
}

Semantic roles & 50–950 ramp

primary
#8A38BF
secondary
#A2CA89
accent
#DE4A84
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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