#8338BD#8338BD

#8338BD is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.8% C 0.200 H 306.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8338BD
RGBrgb(131, 56, 189)
HSLhsl(274, 54%, 48%)
HSVhsv(274, 70%, 74%)
CMYKcmyk(30.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(40.13, 55.26, -56.77)
CIE-LCHlch(40.13, 79.22, 314.22°)
OKLaboklab(50.83% 0.1183 -0.1612)
OKLCHoklch(50.83% 0.2 306.3)
XYZxyz(19.9576, 11.3280, 49.2694)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338BD #72BD38
analogous
#4138BD #8338BD #BD38B4
triadic
#8338BD #BD8338 #38BD83
tetradic
#8338BD #BD4138 #72BD38 #38B4BD
square
#8338BD #BD4138 #72BD38 #38B4BD
split-complementary
#8338BD #B4BD38 #38BD41
monochromatic
#421C5F #622A8E #8338BD #A062D0 #BD91DE

Accessibility & contrast

On white

6.43
#8338BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8338BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338BD
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338BD#FFFFFF#000000##FFFFFF
##8338BD1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#055FBA
Tritanopia (blue-blind)
#795677
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8338bd;
/* rgb */ color: rgb(131, 56, 189);
/* oklch */ color: oklch(50.8% 0.200 306.3);
Tailwind
colors: {
  custom: {
    50: '#ac75d2',
    500: '#8338bd',
    950: '#000000',
  },
}
SCSS
$custom: #8338bd;
$custom-light: #ac75d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8338bd",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 273.835,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50834,
    "c": 0.19991,
    "h": 306.3
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#8338BD
secondary
#A4C987
accent
#DE4A8A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8338BD

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

Preview Lab → · Contrast checker → · Palette generator →

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