#8338AE#8338AE

#8338AE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.184 H 310.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8338AE
RGBrgb(131, 56, 174)
HSLhsl(278, 51%, 45%)
HSVhsv(278, 68%, 68%)
CMYKcmyk(24.7%, 67.8%, 0%, 31.8%)
CIE-LABlab(39.09, 51.86, -49.60)
CIE-LCHlch(39.09, 71.76, 316.28°)
OKLaboklab(49.76% 0.12 -0.1401)
OKLCHoklch(49.76% 0.184 310.6)
XYZxyz(18.4128, 10.7100, 41.1335)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338AE #63AE38
analogous
#4838AE #8338AE #AE389E
triadic
#8338AE #AE8338 #38AE83
tetradic
#8338AE #AE4838 #63AE38 #389EAE
square
#8338AE #AE4838 #63AE38 #389EAE
split-complementary
#8338AE #9EAE38 #38AE48
monochromatic
#3D1A51 #602980 #8338AE #A159CA #BB88D9

Accessibility & contrast

On white

6.68
#8338AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8338AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8338AE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8338AE#FFFFFF#000000##FFFFFF
##8338AE1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#285DAB
Tritanopia (blue-blind)
#7D516E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8338ae;
/* rgb */ color: rgb(131, 56, 174);
/* oklch */ color: oklch(49.8% 0.184 310.6);
Tailwind
colors: {
  custom: {
    50: '#ab74c7',
    500: '#8338ae',
    950: '#000000',
  },
}
SCSS
$custom: #8338ae;
$custom-light: #ab74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8338ae",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 278.136,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49761,
    "c": 0.18449,
    "h": 310.6
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#8338AE
secondary
#98C37F
accent
#DB4D81
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8338AE

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

Preview Lab → · Contrast checker → · Palette generator →

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