#8338CD#8338CD

#8338CD is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.0% C 0.216 H 302.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8338CD
RGBrgb(131, 56, 205)
HSLhsl(270, 60%, 51%)
HSVhsv(270, 73%, 80%)
CMYKcmyk(36.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(41.31, 58.98, -64.17)
CIE-LCHlch(41.31, 87.16, 312.59°)
OKLaboklab(52.05% 0.1155 -0.1829)
OKLCHoklch(52.05% 0.216 302.3)
XYZxyz(21.7911, 12.0614, 58.9258)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338CD #82CD38
analogous
#3838CD #8338CD #CD38CC
triadic
#8338CD #CD8338 #38CD83
tetradic
#8338CD #CD3838 #82CD38 #38CCCD
square
#8338CD #CD3838 #82CD38 #38CCCD
split-complementary
#8338CD #CCCD38 #38CD38
monochromatic
#461C6F #6428A0 #8338CD #A169D9 #C09AE6

Accessibility & contrast

On white

6.15
#8338CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8338CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338CD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338CD#FFFFFF#000000##FFFFFF
##8338CD1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#735D7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8338cd;
/* rgb */ color: rgb(131, 56, 205);
/* oklch */ color: oklch(52.0% 0.216 302.3);
Tailwind
colors: {
  custom: {
    50: '#ad75dd',
    500: '#8338cd',
    950: '#000000',
  },
}
SCSS
$custom: #8338cd;
$custom-light: #ad75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8338cd",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 270.201,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52048,
    "c": 0.21632,
    "h": 302.3
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#8338CD
secondary
#B0D18F
accent
#E34593
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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