#8A38C5#8A38C5

#8A38C5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.210 H 307.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A38C5
RGBrgb(138, 56, 197)
HSLhsl(275, 56%, 50%)
HSVhsv(275, 72%, 77%)
CMYKcmyk(29.9%, 71.6%, 0%, 22.7%)
CIE-LABlab(41.63, 58.45, -58.97)
CIE-LCHlch(41.63, 83.03, 314.75°)
OKLaboklab(52.28% 0.1265 -0.1674)
OKLCHoklch(52.28% 0.21 307.1)
XYZxyz(21.9713, 12.2631, 54.0221)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38C5 #73C538
analogous
#4438C5 #8A38C5 #C538B9
triadic
#8A38C5 #C58A38 #38C58A
tetradic
#8A38C5 #C54438 #73C538 #38B9C5
square
#8A38C5 #C54438 #73C538 #38B9C5
split-complementary
#8A38C5 #B9C538 #38C544
monochromatic
#471D66 #692A95 #8A38C5 #A667D4 #C296E1

Accessibility & contrast

On white

6.08
#8A38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38C5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38C5#FFFFFF#000000##FFFFFF
##8A38C51.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#80597B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a38c5;
/* rgb */ color: rgb(138, 56, 197);
/* oklch */ color: oklch(52.3% 0.210 307.1);
Tailwind
colors: {
  custom: {
    50: '#b176d7',
    500: '#8a38c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a38c5;
$custom-light: #b176d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38c5",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 274.894,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52282,
    "c": 0.2098,
    "h": 307.1
  },
  "luminance": 0.12263
}

Semantic roles & 50–950 ramp

primary
#8A38C5
secondary
#A7CD8C
accent
#DF4988
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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