#8F38CB#8F38CB

#8F38CB is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.3% C 0.217 H 307.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8F38CB
RGBrgb(143, 56, 203)
HSLhsl(276, 59%, 51%)
HSVhsv(276, 72%, 80%)
CMYKcmyk(29.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(42.73, 60.74, -60.63)
CIE-LCHlch(42.73, 85.83, 315.05°)
OKLaboklab(53.34% 0.1322 -0.1721)
OKLCHoklch(53.34% 0.217 307.5)
XYZxyz(23.5191, 12.9801, 57.7547)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38CB #74CB38
analogous
#4538CB #8F38CB #CB38BE
triadic
#8F38CB #CB8F38 #38CB8F
tetradic
#8F38CB #CB4538 #74CB38 #38BECB
square
#8F38CB #CB4538 #74CB38 #38BECB
split-complementary
#8F38CB #BECB38 #38CB45
monochromatic
#4C1C6C #6E299D #8F38CB #AA69D8 #C699E4

Accessibility & contrast

On white

5.84
#8F38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8F38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38CB
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38CB#FFFFFF#000000##FFFFFF
##8F38CB1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#855A7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f38cb;
/* rgb */ color: rgb(143, 56, 203);
/* oklch */ color: oklch(53.3% 0.217 307.5);
Tailwind
colors: {
  custom: {
    50: '#b576dc',
    500: '#8f38cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f38cb;
$custom-light: #b576dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38cb",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 275.51,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53342,
    "c": 0.217,
    "h": 307.5
  },
  "luminance": 0.1298
}

Semantic roles & 50–950 ramp

primary
#8F38CB
secondary
#A9D08F
accent
#E24686
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8F38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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