#8C38CB#8C38CB

#8C38CB is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.0% C 0.216 H 306.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8C38CB
RGBrgb(140, 56, 203)
HSLhsl(274, 59%, 51%)
HSVhsv(274, 72%, 80%)
CMYKcmyk(31%, 72.4%, 0%, 20.4%)
CIE-LABlab(42.33, 60.18, -61.30)
CIE-LCHlch(42.33, 85.90, 314.47°)
OKLaboklab(52.97% 0.1282 -0.1742)
OKLCHoklch(52.97% 0.216 306.3)
XYZxyz(23.0065, 12.7158, 57.7307)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C38CB #77CB38
analogous
#4238CB #8C38CB #CB38C0
triadic
#8C38CB #CB8C38 #38CB8C
tetradic
#8C38CB #CB4238 #77CB38 #38C0CB
square
#8C38CB #CB4238 #77CB38 #38C0CB
split-complementary
#8C38CB #C0CB38 #38CB42
monochromatic
#4A1C6C #6B299D #8C38CB #A869D8 #C499E4

Accessibility & contrast

On white

5.93
#8C38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8C38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C38CB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C38CB#FFFFFF#000000##FFFFFF
##8C38CB1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#815B7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8c38cb;
/* rgb */ color: rgb(140, 56, 203);
/* oklch */ color: oklch(53.0% 0.216 306.3);
Tailwind
colors: {
  custom: {
    50: '#b376dc',
    500: '#8c38cb',
    950: '#000000',
  },
}
SCSS
$custom: #8c38cb;
$custom-light: #b376dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c38cb",
  "rgb": {
    "r": 140,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 274.286,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52972,
    "c": 0.21625,
    "h": 306.3
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#8C38CB
secondary
#ABD08F
accent
#E24689
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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