#8A38BC#8A38BC

#8A38BC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.201 H 309.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A38BC
RGBrgb(138, 56, 188)
HSLhsl(277, 54%, 48%)
HSVhsv(277, 70%, 74%)
CMYKcmyk(26.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(41.00, 56.45, -54.73)
CIE-LCHlch(41.00, 78.63, 315.89°)
OKLaboklab(51.63% 0.1278 -0.1549)
OKLCHoklch(51.63% 0.201 309.5)
XYZxyz(20.9707, 11.8629, 48.7522)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38BC #6ABC38
analogous
#4838BC #8A38BC #BC38AC
triadic
#8A38BC #BC8A38 #38BC8A
tetradic
#8A38BC #BC4838 #6ABC38 #38ACBC
square
#8A38BC #BC4838 #6ABC38 #38ACBC
split-complementary
#8A38BC #ACBC38 #38BC48
monochromatic
#451C5E #672A8D #8A38BC #A661D0 #C190DE

Accessibility & contrast

On white

6.23
#8A38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38BC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38BC#FFFFFF#000000##FFFFFF
##8A38BC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#1E62B9
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a38bc;
/* rgb */ color: rgb(138, 56, 188);
/* oklch */ color: oklch(51.6% 0.201 309.5);
Tailwind
colors: {
  custom: {
    50: '#b075d1',
    500: '#8a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a38bc;
$custom-light: #b075d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38bc",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 277.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51631,
    "c": 0.20082,
    "h": 309.5
  },
  "luminance": 0.11862
}

Semantic roles & 50–950 ramp

primary
#8A38BC
secondary
#A0C987
accent
#DD4A82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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