#8A38CD#8A38CD

#8A38CD is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.9% C 0.218 H 305.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A38CD
RGBrgb(138, 56, 205)
HSLhsl(273, 60%, 51%)
HSVhsv(273, 73%, 80%)
CMYKcmyk(32.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(42.22, 60.26, -62.66)
CIE-LCHlch(42.22, 86.93, 313.88°)
OKLaboklab(52.88% 0.1251 -0.1782)
OKLCHoklch(52.88% 0.218 305.1)
XYZxyz(22.9124, 12.6395, 58.9784)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38CD #7BCD38
analogous
#3F38CD #8A38CD #CD38C5
triadic
#8A38CD #CD8A38 #38CD8A
tetradic
#8A38CD #CD3F38 #7BCD38 #38C5CD
square
#8A38CD #CD3F38 #7BCD38 #38C5CD
split-complementary
#8A38CD #C5CD38 #38CD3F
monochromatic
#491C6F #6A28A0 #8A38CD #A769D9 #C49AE6

Accessibility & contrast

On white

5.95
#8A38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38CD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38CD#FFFFFF#000000##FFFFFF
##8A38CD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#7E5C80
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a38cd;
/* rgb */ color: rgb(138, 56, 205);
/* oklch */ color: oklch(52.9% 0.218 305.1);
Tailwind
colors: {
  custom: {
    50: '#b276dd',
    500: '#8a38cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a38cd;
$custom-light: #b276dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38cd",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 273.02,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5288,
    "c": 0.21776,
    "h": 305.1
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#8A38CD
secondary
#ADD18F
accent
#E3458C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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