#8A38B4#8A38B4

#8A38B4 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.1% C 0.193 H 311.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A38B4
RGBrgb(138, 56, 180)
HSLhsl(280, 53%, 46%)
HSVhsv(280, 69%, 71%)
CMYKcmyk(23.3%, 68.9%, 0%, 29.4%)
CIE-LABlab(40.45, 54.71, -50.90)
CIE-LCHlch(40.45, 74.73, 317.06°)
OKLaboklab(51.07% 0.1286 -0.1437)
OKLCHoklch(51.07% 0.193 311.8)
XYZxyz(20.1321, 11.5274, 44.3357)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B4 #62B438
analogous
#4C38B4 #8A38B4 #B438A0
triadic
#8A38B4 #B48A38 #38B48A
tetradic
#8A38B4 #B44C38 #62B438 #38A0B4
square
#8A38B4 #B44C38 #62B438 #38A0B4
split-complementary
#8A38B4 #A0B438 #38B44C
monochromatic
#421B57 #662985 #8A38B4 #A75DCD #C08BDB

Accessibility & contrast

On white

6.35
#8A38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B4#FFFFFF#000000##FFFFFF
##8A38B41.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#2A61B1
Tritanopia (blue-blind)
#855272
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b4;
/* rgb */ color: rgb(138, 56, 180);
/* oklch */ color: oklch(51.1% 0.193 311.8);
Tailwind
colors: {
  custom: {
    50: '#b075cb',
    500: '#8a38b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b4;
$custom-light: #b075cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b4",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 279.677,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51071,
    "c": 0.19287,
    "h": 311.8
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#8A38B4
secondary
#99C582
accent
#DC4C7D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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