#8338C5#8338C5

#8338C5 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.208 H 304.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8338C5
RGBrgb(131, 56, 197)
HSLhsl(272, 56%, 50%)
HSVhsv(272, 72%, 77%)
CMYKcmyk(33.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.71, 57.11, -60.50)
CIE-LCHlch(40.71, 83.20, 313.35°)
OKLaboklab(51.43% 0.117 -0.1721)
OKLCHoklch(51.43% 0.208 304.2)
XYZxyz(20.8500, 11.6849, 53.9695)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338C5 #7AC538
analogous
#3D38C5 #8338C5 #C538C1
triadic
#8338C5 #C58338 #38C583
tetradic
#8338C5 #C53D38 #7AC538 #38C1C5
square
#8338C5 #C53D38 #7AC538 #38C1C5
split-complementary
#8338C5 #C1C538 #38C53D
monochromatic
#441D66 #632A95 #8338C5 #A167D4 #BE96E1

Accessibility & contrast

On white

6.29
#8338C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8338C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338C5
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338C5#FFFFFF#000000##FFFFFF
##8338C51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#765A7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8338c5;
/* rgb */ color: rgb(131, 56, 197);
/* oklch */ color: oklch(51.4% 0.208 304.2);
Tailwind
colors: {
  custom: {
    50: '#ac75d7',
    500: '#8338c5',
    950: '#000000',
  },
}
SCSS
$custom: #8338c5;
$custom-light: #ac75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8338c5",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 271.915,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51432,
    "c": 0.20812,
    "h": 304.2
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

primary
#8338C5
secondary
#AACD8C
accent
#DF498F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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