#8338BB#8338BB

#8338BB is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.7% C 0.198 H 306.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8338BB
RGBrgb(131, 56, 187)
HSLhsl(274, 54%, 48%)
HSVhsv(274, 70%, 73%)
CMYKcmyk(29.9%, 70.1%, 0%, 26.7%)
CIE-LABlab(39.98, 54.80, -55.83)
CIE-LCHlch(39.98, 78.23, 314.46°)
OKLaboklab(50.69% 0.1185 -0.1584)
OKLCHoklch(50.69% 0.198 306.8)
XYZxyz(19.7420, 11.2417, 48.1339)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338BB #70BB38
analogous
#4238BB #8338BB #BB38B1
triadic
#8338BB #BB8338 #38BB83
tetradic
#8338BB #BB4238 #70BB38 #38B1BB
square
#8338BB #BB4238 #70BB38 #38B1BB
split-complementary
#8338BB #B1BB38 #38BB42
monochromatic
#411C5D #622A8C #8338BB #A061D0 #BC90DE

Accessibility & contrast

On white

6.47
#8338BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8338BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338BB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338BB#FFFFFF#000000##FFFFFF
##8338BB1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0D5FB8
Tritanopia (blue-blind)
#7A5675
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8338bb;
/* rgb */ color: rgb(131, 56, 187);
/* oklch */ color: oklch(50.7% 0.198 306.8);
Tailwind
colors: {
  custom: {
    50: '#ac75d0',
    500: '#8338bb',
    950: '#000000',
  },
}
SCSS
$custom: #8338bb;
$custom-light: #ac75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8338bb",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 274.351,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50687,
    "c": 0.19785,
    "h": 306.8
  },
  "luminance": 0.11241
}

Semantic roles & 50–950 ramp

primary
#8338BB
secondary
#A3C886
accent
#DD4B89
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8338BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8338BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva