#A338D9#A338D9

#A338D9 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.9% C 0.236 H 311.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A338D9
RGBrgb(163, 56, 217)
HSLhsl(280, 68%, 54%)
HSVhsv(280, 74%, 85%)
CMYKcmyk(24.9%, 74.2%, 0%, 14.9%)
CIE-LABlab(46.48, 67.46, -62.49)
CIE-LCHlch(46.48, 91.95, 317.19°)
OKLaboklab(56.88% 0.1559 -0.1769)
OKLCHoklch(56.88% 0.236 311.4)
XYZxyz(29.0405, 15.6254, 67.1184)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338D9 #6ED938
analogous
#5238D9 #A338D9 #D938BE
triadic
#A338D9 #D9A338 #38D9A3
tetradic
#A338D9 #D95238 #6ED938 #38BED9
square
#A338D9 #D95238 #6ED938 #38BED9
split-complementary
#A338D9 #BED938 #38D952
monochromatic
#5C187E #8222B2 #A338D9 #BB6BE3 #D39FED

Accessibility & contrast

On white

5.09
#A338D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A338D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338D9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338D9#FFFFFF#000000##FFFFFF
##A338D91.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#1A70D6
Tritanopia (blue-blind)
#9C5D86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a338d9;
/* rgb */ color: rgb(163, 56, 217);
/* oklch */ color: oklch(56.9% 0.236 311.4);
Tailwind
colors: {
  custom: {
    50: '#c379e6',
    500: '#a338d9',
    950: '#000000',
  },
}
SCSS
$custom: #a338d9;
$custom-light: #c379e6;
$custom-dark: #000000;
JSON
{
  "hex": "#a338d9",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 279.876,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56878,
    "c": 0.23578,
    "h": 311.4
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

primary
#A338D9
secondary
#ABD994
accent
#EB3D77
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A338D9

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

Preview Lab → · Contrast checker → · Palette generator →

#A338D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva