#8A38CB#8A38CB

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

Color values

HEX#8A38CB
RGBrgb(138, 56, 203)
HSLhsl(273, 59%, 51%)
HSVhsv(273, 72%, 80%)
CMYKcmyk(32%, 72.4%, 0%, 20.4%)
CIE-LABlab(42.07, 59.80, -61.74)
CIE-LCHlch(42.07, 85.96, 314.08°)
OKLaboklab(52.73% 0.1255 -0.1756)
OKLCHoklch(52.73% 0.216 305.6)
XYZxyz(22.6725, 12.5436, 57.7151)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A38CB #79CB38
analogous
#4038CB #8A38CB #CB38C3
triadic
#8A38CB #CB8A38 #38CB8A
tetradic
#8A38CB #CB4038 #79CB38 #38C3CB
square
#8A38CB #CB4038 #79CB38 #38C3CB
split-complementary
#8A38CB #C3CB38 #38CB40
monochromatic
#491C6C #6A299D #8A38CB #A769D8 #C399E4

Accessibility & contrast

On white

5.99
#8A38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A38CB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A38CB#FFFFFF#000000##FFFFFF
##8A38CB1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#7E5B7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a38cb;
/* rgb */ color: rgb(138, 56, 203);
/* oklch */ color: oklch(52.7% 0.216 305.6);
Tailwind
colors: {
  custom: {
    50: '#b276dc',
    500: '#8a38cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a38cb;
$custom-light: #b276dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a38cb",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 273.469,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52729,
    "c": 0.21577,
    "h": 305.6
  },
  "luminance": 0.12543
}

Semantic roles & 50–950 ramp

primary
#8A38CB
secondary
#ACD08F
accent
#E2468B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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