#8938CB#8938CB

#8938CB is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.6% C 0.216 H 305.2°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8938CB
RGBrgb(137, 56, 203)
HSLhsl(273, 59%, 51%)
HSVhsv(273, 72%, 80%)
CMYKcmyk(32.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(41.94, 59.61, -61.96)
CIE-LCHlch(41.94, 85.98, 313.89°)
OKLaboklab(52.61% 0.1241 -0.1762)
OKLCHoklch(52.61% 0.216 305.2)
XYZxyz(22.5078, 12.4587, 57.7073)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938CB #7ACB38
analogous
#3F38CB #8938CB #CB38C4
triadic
#8938CB #CB8938 #38CB89
tetradic
#8938CB #CB3F38 #7ACB38 #38C4CB
square
#8938CB #CB3F38 #7ACB38 #38C4CB
split-complementary
#8938CB #C4CB38 #38CB3F
monochromatic
#481C6C #69299D #8938CB #A669D8 #C399E4

Accessibility & contrast

On white

6.01
#8938CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8938CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938CB
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938CB#FFFFFF#000000##FFFFFF
##8938CB1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8938cb;
/* rgb */ color: rgb(137, 56, 203);
/* oklch */ color: oklch(52.6% 0.216 305.2);
Tailwind
colors: {
  custom: {
    50: '#b176dc',
    500: '#8938cb',
    950: '#000000',
  },
}
SCSS
$custom: #8938cb;
$custom-light: #b176dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8938cb",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 273.061,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52608,
    "c": 0.21554,
    "h": 305.2
  },
  "luminance": 0.12459
}

Semantic roles & 50–950 ramp

primary
#8938CB
secondary
#ACD08F
accent
#E2468C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8938CB

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

Preview Lab → · Contrast checker → · Palette generator →

#8938CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva