#8338B3#8338B3

#8338B3 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.1% C 0.190 H 309.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8338B3
RGBrgb(131, 56, 179)
HSLhsl(277, 52%, 46%)
HSVhsv(277, 69%, 70%)
CMYKcmyk(26.8%, 68.7%, 0%, 29.8%)
CIE-LABlab(39.43, 52.98, -52.02)
CIE-LCHlch(39.43, 74.25, 315.53°)
OKLaboklab(50.11% 0.1195 -0.1472)
OKLCHoklch(50.11% 0.19 309.1)
XYZxyz(18.9093, 10.9087, 43.7485)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338B3 #68B338
analogous
#4538B3 #8338B3 #B338A5
triadic
#8338B3 #B38338 #38B383
tetradic
#8338B3 #B34538 #68B338 #38A5B3
square
#8338B3 #B34538 #68B338 #38A5B3
split-complementary
#8338B3 #A5B338 #38B345
monochromatic
#3F1B56 #612984 #8338B3 #A05CCC #BB8BDB

Accessibility & contrast

On white

6.60
#8338B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8338B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8338B3#FFFFFF#000000##FFFFFF
##8338B31.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB7
Deuteranopia (green-blind)
#205EB0
Tritanopia (blue-blind)
#7C5371
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8338b3;
/* rgb */ color: rgb(131, 56, 179);
/* oklch */ color: oklch(50.1% 0.190 309.1);
Tailwind
colors: {
  custom: {
    50: '#ab74ca',
    500: '#8338b3',
    950: '#000000',
  },
}
SCSS
$custom: #8338b3;
$custom-light: #ab74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8338b3",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 276.585,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50111,
    "c": 0.18963,
    "h": 309.1
  },
  "luminance": 0.10908
}

Semantic roles & 50–950 ramp

primary
#8338B3
secondary
#9CC582
accent
#DC4C84
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8338B3

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

Preview Lab → · Contrast checker → · Palette generator →

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