#8A38D9#8A38D9

#8A38D9 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.8% C 0.230 H 302.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A38D9
RGBrgb(138, 56, 217)
HSLhsl(271, 68%, 54%)
HSVhsv(271, 74%, 85%)
CMYKcmyk(36.4%, 74.2%, 0%, 14.9%)
CIE-LABlab(43.12, 63.00, -68.09)
CIE-LCHlch(43.12, 92.77, 312.78°)
OKLaboklab(53.81% 0.1227 -0.1942)
OKLCHoklch(53.81% 0.23 302.3)
XYZxyz(24.4168, 13.2413, 66.9017)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38D9 #87D938
analogous
#3938D9 #8A38D9 #D938D7
triadic
#8A38D9 #D98A38 #38D98A
tetradic
#8A38D9 #D93938 #87D938 #38D7D9
square
#8A38D9 #D93938 #87D938 #38D7D9
split-complementary
#8A38D9 #D7D938 #38D939
monochromatic
#4C187E #6B22B2 #8A38D9 #A86BE3 #C69FED

Accessibility & contrast

On white

5.76
#8A38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38D9
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38D9#FFFFFF#000000##FFFFFF
##8A38D91.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0065D6
Tritanopia (blue-blind)
#796186
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a38d9;
/* rgb */ color: rgb(138, 56, 217);
/* oklch */ color: oklch(53.8% 0.230 302.3);
Tailwind
colors: {
  custom: {
    50: '#b377e6',
    500: '#8a38d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a38d9;
$custom-light: #b377e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38d9",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 270.559,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.2297,
    "h": 302.3
  },
  "luminance": 0.13241
}

Semantic roles & 50–950 ramp

primary
#8A38D9
secondary
#B6D994
accent
#EB3D92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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