#A338BB#A338BB

#A338BB is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.209 H 319.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#A338BB
RGBrgb(163, 56, 187)
HSLhsl(289, 54%, 48%)
HSVhsv(289, 70%, 73%)
CMYKcmyk(12.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(44.52, 61.55, -48.29)
CIE-LCHlch(44.52, 78.23, 321.88°)
OKLaboklab(54.87% 0.1593 -0.1352)
OKLCHoklch(54.87% 0.209 319.7)
XYZxyz(25.4869, 14.2040, 48.4032)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338BB #50BB38
analogous
#6238BB #A338BB #BB3891
triadic
#A338BB #BBA338 #38BBA3
tetradic
#A338BB #BB6238 #50BB38 #3891BB
square
#A338BB #BB6238 #50BB38 #3891BB
split-complementary
#A338BB #91BB38 #38BB62
monochromatic
#511C5D #7A2A8C #A338BB #BB61D0 #CF90DE

Accessibility & contrast

On white

5.47
#A338BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#A338BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338BB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338BB#FFFFFF#000000##FFFFFF
##A338BB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#426DB8
Tritanopia (blue-blind)
#A35176
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a338bb;
/* rgb */ color: rgb(163, 56, 187);
/* oklch */ color: oklch(54.9% 0.209 319.7);
Tailwind
colors: {
  custom: {
    50: '#c278d0',
    500: '#a338bb',
    950: '#000000',
  },
}
SCSS
$custom: #a338bb;
$custom-light: #c278d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a338bb",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 289.008,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54867,
    "c": 0.20894,
    "h": 319.7
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A338BB

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

Preview Lab → · Contrast checker → · Palette generator →

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