#8338AB#8338AB

#8338AB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.181 H 311.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8338AB
RGBrgb(131, 56, 171)
HSLhsl(279, 51%, 45%)
HSVhsv(279, 67%, 67%)
CMYKcmyk(23.4%, 67.3%, 0%, 32.9%)
CIE-LABlab(38.89, 51.20, -48.14)
CIE-LCHlch(38.89, 70.27, 316.76°)
OKLaboklab(49.56% 0.1203 -0.1358)
OKLCHoklch(49.56% 0.181 311.5)
XYZxyz(18.1236, 10.5944, 39.6104)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338AB #60AB38
analogous
#4938AB #8338AB #AB389A
triadic
#8338AB #AB8338 #38AB83
tetradic
#8338AB #AB4938 #60AB38 #389AAB
square
#8338AB #AB4938 #60AB38 #389AAB
split-complementary
#8338AB #9AAB38 #38AB49
monochromatic
#3C1A4F #60297D #8338AB #A158C8 #BB86D7

Accessibility & contrast

On white

6.73
#8338AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8338AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8338AB#FFFFFF#000000##FFFFFF
##8338AB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#2B5DA8
Tritanopia (blue-blind)
#7E4F6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8338ab;
/* rgb */ color: rgb(131, 56, 171);
/* oklch */ color: oklch(49.6% 0.181 311.5);
Tailwind
colors: {
  custom: {
    50: '#ab74c5',
    500: '#8338ab',
    950: '#000000',
  },
}
SCSS
$custom: #8338ab;
$custom-light: #ab74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8338ab",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 279.13,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49555,
    "c": 0.1814,
    "h": 311.5
  },
  "luminance": 0.10594
}

Semantic roles & 50–950 ramp

primary
#8338AB
secondary
#95C17D
accent
#DA4E7F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8338AB

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

Preview Lab → · Contrast checker → · Palette generator →

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