#8338BF#8338BF

#8338BF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.202 H 305.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8338BF
RGBrgb(131, 56, 191)
HSLhsl(273, 55%, 48%)
HSVhsv(273, 71%, 75%)
CMYKcmyk(31.4%, 70.7%, 0%, 25.1%)
CIE-LABlab(40.27, 55.72, -57.71)
CIE-LCHlch(40.27, 80.22, 313.99°)
OKLaboklab(50.98% 0.118 -0.1639)
OKLCHoklch(50.98% 0.202 305.7)
XYZxyz(20.1761, 11.4154, 50.4206)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338BF #74BF38
analogous
#3F38BF #8338BF #BF38B7
triadic
#8338BF #BF8338 #38BF83
tetradic
#8338BF #BF3F38 #74BF38 #38B7BF
square
#8338BF #BF3F38 #74BF38 #38B7BF
split-complementary
#8338BF #B7BF38 #38BF3F
monochromatic
#421C60 #632A90 #8338BF #A063D1 #BD92DF

Accessibility & contrast

On white

6.40
#8338BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8338BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338BF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338BF#FFFFFF#000000##FFFFFF
##8338BF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#785778
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8338bf;
/* rgb */ color: rgb(131, 56, 191);
/* oklch */ color: oklch(51.0% 0.202 305.7);
Tailwind
colors: {
  custom: {
    50: '#ac75d3',
    500: '#8338bf',
    950: '#000000',
  },
}
SCSS
$custom: #8338bf;
$custom-light: #ac75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8338bf",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 273.333,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50982,
    "c": 0.20196,
    "h": 305.7
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#8338BF
secondary
#A6CA89
accent
#DE4A8C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8338BF

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

Preview Lab → · Contrast checker → · Palette generator →

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