#8A38D4#8A38D4

#8A38D4 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.4% C 0.225 H 303.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A38D4
RGBrgb(138, 56, 212)
HSLhsl(272, 64%, 53%)
HSVhsv(272, 74%, 83%)
CMYKcmyk(34.9%, 73.6%, 0%, 16.9%)
CIE-LABlab(42.74, 61.85, -65.84)
CIE-LCHlch(42.74, 90.34, 313.21°)
OKLaboklab(53.42% 0.1237 -0.1876)
OKLCHoklch(53.42% 0.225 303.4)
XYZxyz(23.7763, 12.9851, 63.5284)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38D4 #82D438
analogous
#3C38D4 #8A38D4 #D438D0
triadic
#8A38D4 #D48A38 #38D48A
tetradic
#8A38D4 #D43C38 #82D438 #38D0D4
square
#8A38D4 #D43C38 #82D438 #38D0D4
split-complementary
#8A38D4 #D0D438 #38D43C
monochromatic
#4B1A78 #6B25AA #8A38D4 #A86ADF #C59DEA

Accessibility & contrast

On white

5.84
#8A38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38D4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38D4#FFFFFF#000000##FFFFFF
##8A38D41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#0065D1
Tritanopia (blue-blind)
#7B5F83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a38d4;
/* rgb */ color: rgb(138, 56, 212);
/* oklch */ color: oklch(53.4% 0.225 303.4);
Tailwind
colors: {
  custom: {
    50: '#b276e2',
    500: '#8a38d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a38d4;
$custom-light: #b276e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38d4",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 271.538,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53416,
    "c": 0.22473,
    "h": 303.4
  },
  "luminance": 0.12985
}

Semantic roles & 50–950 ramp

primary
#8A38D4
secondary
#B2D692
accent
#E74090
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8A38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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