#8338AF#8338AF

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

Color values

HEX#8338AF
RGBrgb(131, 56, 175)
HSLhsl(278, 52%, 45%)
HSVhsv(278, 68%, 69%)
CMYKcmyk(25.1%, 68%, 0%, 31.4%)
CIE-LABlab(39.15, 52.09, -50.09)
CIE-LCHlch(39.15, 72.26, 316.12°)
OKLaboklab(49.83% 0.1199 -0.1415)
OKLCHoklch(49.83% 0.186 310.3)
XYZxyz(18.5106, 10.7492, 41.6488)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8338AF #64AF38
analogous
#4738AF #8338AF #AF389F
triadic
#8338AF #AF8338 #38AF83
tetradic
#8338AF #AF4738 #64AF38 #389FAF
square
#8338AF #AF4738 #64AF38 #389FAF
split-complementary
#8338AF #9FAF38 #38AF47
monochromatic
#3E1A52 #602981 #8338AF #A15ACA #BB88D9

Accessibility & contrast

On white

6.67
#8338AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8338AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8338AF#FFFFFF#000000##FFFFFF
##8338AF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#265DAC
Tritanopia (blue-blind)
#7D516F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8338af;
/* rgb */ color: rgb(131, 56, 175);
/* oklch */ color: oklch(49.8% 0.186 310.3);
Tailwind
colors: {
  custom: {
    50: '#ab74c8',
    500: '#8338af',
    950: '#000000',
  },
}
SCSS
$custom: #8338af;
$custom-light: #ab74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8338af",
  "rgb": {
    "r": 131,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 277.815,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4983,
    "c": 0.18551,
    "h": 310.3
  },
  "luminance": 0.10749
}

Semantic roles & 50–950 ramp

primary
#8338AF
secondary
#99C380
accent
#DB4D81
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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