#A338BA#A338BA

#A338BA is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.8% C 0.208 H 320.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#A338BA
RGBrgb(163, 56, 186)
HSLhsl(289, 54%, 47%)
HSVhsv(289, 70%, 73%)
CMYKcmyk(12.4%, 69.9%, 0%, 27.1%)
CIE-LABlab(44.46, 61.36, -47.80)
CIE-LCHlch(44.46, 77.78, 322.08°)
OKLaboklab(54.8% 0.1593 -0.1338)
OKLCHoklch(54.8% 0.208 320)
XYZxyz(25.3803, 14.1613, 47.8414)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338BA #4FBA38
analogous
#6238BA #A338BA #BA3890
triadic
#A338BA #BAA338 #38BAA3
tetradic
#A338BA #BA6238 #4FBA38 #3890BA
square
#A338BA #BA6238 #4FBA38 #3890BA
split-complementary
#A338BA #90BA38 #38BA62
monochromatic
#511C5C #7A2A8B #A338BA #BB60CF #CF8FDD

Accessibility & contrast

On white

5.48
#A338BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#A338BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338BA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338BA#FFFFFF#000000##FFFFFF
##A338BA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#436DB7
Tritanopia (blue-blind)
#A45075
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a338ba;
/* rgb */ color: rgb(163, 56, 186);
/* oklch */ color: oklch(54.8% 0.208 320.0);
Tailwind
colors: {
  custom: {
    50: '#c278cf',
    500: '#a338ba',
    950: '#000000',
  },
}
SCSS
$custom: #a338ba;
$custom-light: #c278cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a338ba",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 289.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54804,
    "c": 0.20806,
    "h": 320
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#A338BA
secondary
#91C886
accent
#DD4B65
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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