#8A38CA#8A38CA

#8A38CA is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.7% C 0.215 H 305.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8A38CA
RGBrgb(138, 56, 202)
HSLhsl(274, 58%, 51%)
HSVhsv(274, 72%, 79%)
CMYKcmyk(31.7%, 72.3%, 0%, 20.8%)
CIE-LABlab(41.99, 59.58, -61.28)
CIE-LCHlch(41.99, 85.47, 314.19°)
OKLaboklab(52.65% 0.1256 -0.1742)
OKLCHoklch(52.65% 0.215 305.8)
XYZxyz(22.5537, 12.4961, 57.0895)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38CA #78CA38
analogous
#4138CA #8A38CA #CA38C1
triadic
#8A38CA #CA8A38 #38CA8A
tetradic
#8A38CA #CA4138 #78CA38 #38C1CA
square
#8A38CA #CA4138 #78CA38 #38C1CA
split-complementary
#8A38CA #C1CA38 #38CA41
monochromatic
#491D6B #69299B #8A38CA #A668D7 #C399E4

Accessibility & contrast

On white

6.00
#8A38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38CA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38CA#FFFFFF#000000##FFFFFF
##8A38CA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#7F5B7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a38ca;
/* rgb */ color: rgb(138, 56, 202);
/* oklch */ color: oklch(52.7% 0.215 305.8);
Tailwind
colors: {
  custom: {
    50: '#b176db',
    500: '#8a38ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a38ca;
$custom-light: #b176db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38ca",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 273.699,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52654,
    "c": 0.21478,
    "h": 305.8
  },
  "luminance": 0.12496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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