#8338B5#8338B5

#8338B5 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.3% C 0.192 H 308.5°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8338B5
RGBrgb(131, 56, 181)
HSLhsl(276, 53%, 46%)
HSVhsv(276, 69%, 71%)
CMYKcmyk(27.6%, 69.1%, 0%, 29%)
CIE-LABlab(39.56, 53.43, -52.98)
CIE-LCHlch(39.56, 75.24, 315.24°)
OKLaboklab(50.25% 0.1193 -0.15)
OKLCHoklch(50.25% 0.192 308.5)
XYZxyz(19.1130, 10.9901, 44.8215)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338B5 #6AB538
analogous
#4538B5 #8338B5 #B538A9
triadic
#8338B5 #B58338 #38B583
tetradic
#8338B5 #B54538 #6AB538 #38A9B5
square
#8338B5 #B54538 #6AB538 #38A9B5
split-complementary
#8338B5 #A9B538 #38B545
monochromatic
#3F1B58 #612A86 #8338B5 #A05DCD #BC8CDB

Accessibility & contrast

On white

6.57
#8338B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8338B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338B5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338B5#FFFFFF#000000##FFFFFF
##8338B51.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#1D5EB2
Tritanopia (blue-blind)
#7B5372
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8338b5;
/* rgb */ color: rgb(131, 56, 181);
/* oklch */ color: oklch(50.3% 0.192 308.5);
Tailwind
colors: {
  custom: {
    50: '#ab74cc',
    500: '#8338b5',
    950: '#000000',
  },
}
SCSS
$custom: #8338b5;
$custom-light: #ab74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8338b5",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 276,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.19167,
    "h": 308.5
  },
  "luminance": 0.1099
}

Semantic roles & 50–950 ramp

primary
#8338B5
secondary
#9EC683
accent
#DC4C85
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8338B5

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

Preview Lab → · Contrast checker → · Palette generator →

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