#8A38E6#8A38E6

#8A38E6 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.8% C 0.243 H 299.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A38E6
RGBrgb(138, 56, 230)
HSLhsl(268, 78%, 56%)
HSVhsv(268, 76%, 90%)
CMYKcmyk(40%, 75.7%, 0%, 9.8%)
CIE-LABlab(44.15, 66.02, -73.82)
CIE-LCHlch(44.15, 99.04, 311.81°)
OKLaboklab(54.85% 0.1196 -0.211)
OKLCHoklch(54.85% 0.243 299.5)
XYZxyz(26.1747, 13.9445, 76.1601)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38E6 #94E638
analogous
#383DE6 #8A38E6 #E138E6
triadic
#8A38E6 #E68A38 #38E68A
tetradic
#8A38E6 #E6383D #94E638 #38E6E1
square
#8A38E6 #E6383D #94E638 #38E6E1
split-complementary
#8A38E6 #E6E138 #3DE638
monochromatic
#4E1291 #6B19C8 #8A38E6 #AA6EED #CAA5F4

Accessibility & contrast

On white

5.54
#8A38E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A38E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38E6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38E6#FFFFFF#000000##FFFFFF
##8A38E61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#0067E3
Tritanopia (blue-blind)
#74668E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a38e6;
/* rgb */ color: rgb(138, 56, 230);
/* oklch */ color: oklch(54.8% 0.243 299.5);
Tailwind
colors: {
  custom: {
    50: '#b477ef',
    500: '#8a38e6',
    950: '#000000',
  },
}
SCSS
$custom: #8a38e6;
$custom-light: #b477ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38e6",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 230
  },
  "hsl": {
    "h": 268.276,
    "s": 77.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54847,
    "c": 0.24259,
    "h": 299.5
  },
  "luminance": 0.13945
}

Semantic roles & 50–950 ramp

primary
#8A38E6
secondary
#BFE199
accent
#F43499
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120917
muted
#817B85

Preview Lab

Preview with #8A38E6

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

Preview Lab → · Contrast checker → · Palette generator →

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