#8338AA#8338AA

#8338AA is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.5% C 0.180 H 311.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8338AA
RGBrgb(131, 56, 170)
HSLhsl(279, 50%, 44%)
HSVhsv(279, 67%, 67%)
CMYKcmyk(22.9%, 67.1%, 0%, 33.3%)
CIE-LABlab(38.82, 50.98, -47.65)
CIE-LCHlch(38.82, 69.78, 316.93°)
OKLaboklab(49.49% 0.1203 -0.1344)
OKLCHoklch(49.49% 0.18 311.8)
XYZxyz(18.0286, 10.5564, 39.1103)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338AA #5FAA38
analogous
#4A38AA #8338AA #AA3898
triadic
#8338AA #AA8338 #38AA83
tetradic
#8338AA #AA4A38 #5FAA38 #3898AA
square
#8338AA #AA4A38 #5FAA38 #3898AA
split-complementary
#8338AA #98AA38 #38AA4A
monochromatic
#3C1A4E #60297C #8338AA #A157C8 #BB85D7

Accessibility & contrast

On white

6.75
#8338AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8338AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8338AA#FFFFFF#000000##FFFFFF
##8338AA1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#2D5DA7
Tritanopia (blue-blind)
#7E4F6C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8338aa;
/* rgb */ color: rgb(131, 56, 170);
/* oklch */ color: oklch(49.5% 0.180 311.8);
Tailwind
colors: {
  custom: {
    50: '#ab74c4',
    500: '#8338aa',
    950: '#000000',
  },
}
SCSS
$custom: #8338aa;
$custom-light: #ab74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8338aa",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 279.474,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49487,
    "c": 0.18038,
    "h": 311.8
  },
  "luminance": 0.10556
}

Semantic roles & 50–950 ramp

primary
#8338AA
secondary
#94C17D
accent
#DA4E7E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8338AA

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

Preview Lab → · Contrast checker → · Palette generator →

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