#8A38C9#8A38C9

#8A38C9 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.6% C 0.214 H 306.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A38C9
RGBrgb(138, 56, 201)
HSLhsl(274, 57%, 50%)
HSVhsv(274, 72%, 79%)
CMYKcmyk(31.3%, 72.1%, 0%, 21.2%)
CIE-LABlab(41.92, 59.35, -60.82)
CIE-LCHlch(41.92, 84.98, 314.30°)
OKLaboklab(52.58% 0.1258 -0.1728)
OKLCHoklch(52.58% 0.214 306.1)
XYZxyz(22.4357, 12.4489, 56.4679)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C9 #77C938
analogous
#4138C9 #8A38C9 #C938BF
triadic
#8A38C9 #C98A38 #38C98A
tetradic
#8A38C9 #C94138 #77C938 #38BFC9
square
#8A38C9 #C94138 #77C938 #38BFC9
split-complementary
#8A38C9 #BFC938 #38C941
monochromatic
#481D6A #692A9A #8A38C9 #A668D6 #C398E3

Accessibility & contrast

On white

6.02
#8A38C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A38C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C9#FFFFFF#000000##FFFFFF
##8A38C91.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#7F5A7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a38c9;
/* rgb */ color: rgb(138, 56, 201);
/* oklch */ color: oklch(52.6% 0.214 306.1);
Tailwind
colors: {
  custom: {
    50: '#b176da',
    500: '#8a38c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c9;
$custom-light: #b176da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c9",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 273.931,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52579,
    "c": 0.21378,
    "h": 306.1
  },
  "luminance": 0.12449
}

Semantic roles & 50–950 ramp

primary
#8A38C9
secondary
#AACF8E
accent
#E1478A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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