#8938CA#8938CA

#8938CA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.215 H 305.4°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8938CA
RGBrgb(137, 56, 202)
HSLhsl(273, 58%, 51%)
HSVhsv(273, 72%, 79%)
CMYKcmyk(32.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(41.86, 59.39, -61.50)
CIE-LCHlch(41.86, 85.50, 314.00°)
OKLaboklab(52.53% 0.1243 -0.1749)
OKLCHoklch(52.53% 0.215 305.4)
XYZxyz(22.3890, 12.4111, 57.0818)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8938CA #79CA38
analogous
#4038CA #8938CA #CA38C2
triadic
#8938CA #CA8938 #38CA89
tetradic
#8938CA #CA4038 #79CA38 #38C2CA
square
#8938CA #CA4038 #79CA38 #38C2CA
split-complementary
#8938CA #C2CA38 #38CA40
monochromatic
#481D6B #69299B #8938CA #A668D7 #C299E4

Accessibility & contrast

On white

6.03
#8938CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8938CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8938CA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8938CA#FFFFFF#000000##FFFFFF
##8938CA1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8938ca;
/* rgb */ color: rgb(137, 56, 202);
/* oklch */ color: oklch(52.5% 0.215 305.4);
Tailwind
colors: {
  custom: {
    50: '#b176db',
    500: '#8938ca',
    950: '#000000',
  },
}
SCSS
$custom: #8938ca;
$custom-light: #b176db;
$custom-dark: #000000;
JSON
{
  "hex": "#8938ca",
  "rgb": {
    "r": 137,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 273.288,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52532,
    "c": 0.21454,
    "h": 305.4
  },
  "luminance": 0.12411
}

Semantic roles & 50–950 ramp

primary
#8938CA
secondary
#ABCF8E
accent
#E1478B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8938CA

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

Preview Lab → · Contrast checker → · Palette generator →

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