#8A38C4#8A38C4

#8A38C4 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.2% C 0.209 H 307.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A38C4
RGBrgb(138, 56, 196)
HSLhsl(275, 56%, 49%)
HSVhsv(275, 71%, 77%)
CMYKcmyk(29.6%, 71.4%, 0%, 23.1%)
CIE-LABlab(41.56, 58.23, -58.50)
CIE-LCHlch(41.56, 82.54, 314.87°)
OKLaboklab(52.21% 0.1266 -0.166)
OKLCHoklch(52.21% 0.209 307.3)
XYZxyz(21.8571, 12.2174, 53.4206)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C4 #72C438
analogous
#4438C4 #8A38C4 #C438B8
triadic
#8A38C4 #C48A38 #38C48A
tetradic
#8A38C4 #C44438 #72C438 #38B8C4
square
#8A38C4 #C44438 #72C438 #38B8C4
split-complementary
#8A38C4 #B8C438 #38C444
monochromatic
#471D65 #682A94 #8A38C4 #A666D3 #C296E1

Accessibility & contrast

On white

6.10
#8A38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C4
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C4#FFFFFF#000000##FFFFFF
##8A38C41.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#0563C1
Tritanopia (blue-blind)
#80587A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a38c4;
/* rgb */ color: rgb(138, 56, 196);
/* oklch */ color: oklch(52.2% 0.209 307.3);
Tailwind
colors: {
  custom: {
    50: '#b176d7',
    500: '#8a38c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c4;
$custom-light: #b176d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c4",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 275.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52209,
    "c": 0.20879,
    "h": 307.3
  },
  "luminance": 0.12217
}

Semantic roles & 50–950 ramp

primary
#8A38C4
secondary
#A6CC8C
accent
#DF4987
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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