#8338BA#8338BA

#8338BA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.6% C 0.197 H 307.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8338BA
RGBrgb(131, 56, 186)
HSLhsl(275, 54%, 47%)
HSVhsv(275, 70%, 73%)
CMYKcmyk(29.6%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.91, 54.57, -55.36)
CIE-LCHlch(39.91, 77.73, 314.59°)
OKLaboklab(50.61% 0.1187 -0.157)
OKLCHoklch(50.61% 0.197 307.1)
XYZxyz(19.6353, 11.1990, 47.5721)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338BA #6FBA38
analogous
#4238BA #8338BA #BA38B0
triadic
#8338BA #BA8338 #38BA83
tetradic
#8338BA #BA4238 #6FBA38 #38B0BA
square
#8338BA #BA4238 #6FBA38 #38B0BA
split-complementary
#8338BA #B0BA38 #38BA42
monochromatic
#411C5C #622A8B #8338BA #A060CF #BC8FDD

Accessibility & contrast

On white

6.48
#8338BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8338BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338BA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338BA#FFFFFF#000000##FFFFFF
##8338BA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#115FB7
Tritanopia (blue-blind)
#7A5575
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8338ba;
/* rgb */ color: rgb(131, 56, 186);
/* oklch */ color: oklch(50.6% 0.197 307.1);
Tailwind
colors: {
  custom: {
    50: '#ac75d0',
    500: '#8338ba',
    950: '#000000',
  },
}
SCSS
$custom: #8338ba;
$custom-light: #ac75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8338ba",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 274.615,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50614,
    "c": 0.19682,
    "h": 307.1
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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