#8336B2#8336B2

#8336B2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.191 H 309.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8336B2
RGBrgb(131, 54, 178)
HSLhsl(277, 53%, 45%)
HSVhsv(277, 70%, 70%)
CMYKcmyk(26.4%, 69.7%, 0%, 30.2%)
CIE-LABlab(39.03, 53.66, -52.06)
CIE-LCHlch(39.03, 74.77, 315.87°)
OKLaboklab(49.81% 0.1218 -0.1473)
OKLCHoklch(49.81% 0.191 309.6)
XYZxyz(18.7135, 10.6783, 43.1862)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8336B2 #65B236
analogous
#4536B2 #8336B2 #B236A3
triadic
#8336B2 #B28336 #36B283
tetradic
#8336B2 #B24536 #65B236 #36A3B2
square
#8336B2 #B24536 #65B236 #36A3B2
split-complementary
#8336B2 #A3B236 #36B245
monochromatic
#3E1A54 #602883 #8336B2 #A159CD #BB88DB

Accessibility & contrast

On white

6.70
#8336B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8336B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8336B2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8336B2#FFFFFF#000000##FFFFFF
##8336B21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#7C5170
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8336b2;
/* rgb */ color: rgb(131, 54, 178);
/* oklch */ color: oklch(49.8% 0.191 309.6);
Tailwind
colors: {
  custom: {
    50: '#ab73ca',
    500: '#8336b2',
    950: '#000000',
  },
}
SCSS
$custom: #8336b2;
$custom-light: #ab73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8336b2",
  "rgb": {
    "r": 131,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 277.258,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49809,
    "c": 0.19116,
    "h": 309.6
  },
  "luminance": 0.10678
}

Semantic roles & 50–950 ramp

primary
#8336B2
secondary
#99C57F
accent
#DD4B82
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8336B2

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

Preview Lab → · Contrast checker → · Palette generator →

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