#8336A2#8336A2

#8336A2 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.7% C 0.175 H 314.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8336A2
RGBrgb(131, 54, 162)
HSLhsl(283, 50%, 42%)
HSVhsv(283, 67%, 64%)
CMYKcmyk(19.1%, 66.7%, 0%, 36.5%)
CIE-LABlab(37.97, 50.17, -44.23)
CIE-LCHlch(37.97, 66.88, 318.60°)
OKLaboklab(48.71% 0.1232 -0.1243)
OKLCHoklch(48.71% 0.175 314.7)
XYZxyz(17.1998, 10.0728, 35.2136)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336A2 #55A236
analogous
#4D36A2 #8336A2 #A2368B
triadic
#8336A2 #A28336 #36A283
tetradic
#8336A2 #A24D36 #55A236 #368BA2
square
#8336A2 #A24D36 #55A236 #368BA2
split-complementary
#8336A2 #8BA236 #36A24D
monochromatic
#391746 #5E2774 #8336A2 #A350C5 #BB7ED4

Accessibility & contrast

On white

6.97
#8336A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8336A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8336A2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336A2#FFFFFF#000000##FFFFFF
##8336A21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#335B9F
Tritanopia (blue-blind)
#804B67
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8336a2;
/* rgb */ color: rgb(131, 54, 162);
/* oklch */ color: oklch(48.7% 0.175 314.7);
Tailwind
colors: {
  custom: {
    50: '#aa73be',
    500: '#8336a2',
    950: '#000000',
  },
}
SCSS
$custom: #8336a2;
$custom-light: #aa73be;
$custom-dark: #000000;
JSON
{
  "hex": "#8336a2",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 282.778,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4871,
    "c": 0.175,
    "h": 314.7
  },
  "luminance": 0.10072
}

Semantic roles & 50–950 ramp

primary
#8336A2
secondary
#8BBD77
accent
#DA4E76
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8336A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8336A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva