#8A38B2#8A38B2

#8A38B2 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.191 H 312.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A38B2
RGBrgb(138, 56, 178)
HSLhsl(280, 52%, 46%)
HSVhsv(280, 69%, 70%)
CMYKcmyk(22.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(40.32, 54.28, -49.93)
CIE-LCHlch(40.32, 73.75, 317.39°)
OKLaboklab(50.93% 0.1288 -0.1408)
OKLCHoklch(50.93% 0.191 312.4)
XYZxyz(19.9298, 11.4465, 43.2704)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38B2 #60B238
analogous
#4D38B2 #8A38B2 #B2389D
triadic
#8A38B2 #B28A38 #38B28A
tetradic
#8A38B2 #B24D38 #60B238 #389DB2
square
#8A38B2 #B24D38 #60B238 #389DB2
split-complementary
#8A38B2 #9DB238 #38B24D
monochromatic
#421B55 #662983 #8A38B2 #A75CCC #C08ADA

Accessibility & contrast

On white

6.38
#8A38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38B2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38B2#FFFFFF#000000##FFFFFF
##8A38B21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#855171
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a38b2;
/* rgb */ color: rgb(138, 56, 178);
/* oklch */ color: oklch(50.9% 0.191 312.4);
Tailwind
colors: {
  custom: {
    50: '#b075ca',
    500: '#8a38b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a38b2;
$custom-light: #b075ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38b2",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 280.328,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50934,
    "c": 0.19088,
    "h": 312.4
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#8A38B2
secondary
#97C581
accent
#DC4C7B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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