#8A38B7#8A38B7

#8A38B7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.196 H 310.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A38B7
RGBrgb(138, 56, 183)
HSLhsl(279, 53%, 47%)
HSVhsv(279, 69%, 72%)
CMYKcmyk(24.6%, 69.4%, 0%, 28.2%)
CIE-LABlab(40.66, 55.36, -52.35)
CIE-LCHlch(40.66, 76.19, 316.60°)
OKLaboklab(51.28% 0.1283 -0.1479)
OKLCHoklch(51.28% 0.196 310.9)
XYZxyz(20.4410, 11.6510, 45.9626)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B7 #65B738
analogous
#4B38B7 #8A38B7 #B738A5
triadic
#8A38B7 #B78A38 #38B78A
tetradic
#8A38B7 #B74B38 #65B738 #38A5B7
square
#8A38B7 #B74B38 #65B738 #38A5B7
split-complementary
#8A38B7 #A5B738 #38B74B
monochromatic
#431B59 #672A88 #8A38B7 #A65ECE #C08DDC

Accessibility & contrast

On white

6.31
#8A38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B7#FFFFFF#000000##FFFFFF
##8A38B71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#2661B4
Tritanopia (blue-blind)
#845373
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a38b7;
/* rgb */ color: rgb(138, 56, 183);
/* oklch */ color: oklch(51.3% 0.196 310.9);
Tailwind
colors: {
  custom: {
    50: '#b075cd',
    500: '#8a38b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b7;
$custom-light: #b075cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b7",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 278.74,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.19584,
    "h": 310.9
  },
  "luminance": 0.11651
}

Semantic roles & 50–950 ramp

primary
#8A38B7
secondary
#9CC784
accent
#DD4B7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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