#A338B2#A338B2

#A338B2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.201 H 322.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#A338B2
RGBrgb(163, 56, 178)
HSLhsl(293, 52%, 46%)
HSVhsv(293, 69%, 70%)
CMYKcmyk(8.4%, 68.5%, 0%, 30.2%)
CIE-LABlab(43.99, 59.87, -43.86)
CIE-LCHlch(43.99, 74.21, 323.77°)
OKLaboklab(54.31% 0.1596 -0.1223)
OKLCHoklch(54.31% 0.201 322.5)
XYZxyz(24.5535, 13.8306, 43.4871)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338B2 #47B238
analogous
#6638B2 #A338B2 #B23884
triadic
#A338B2 #B2A338 #38B2A3
tetradic
#A338B2 #B26638 #47B238 #3884B2
square
#A338B2 #B26638 #47B238 #3884B2
split-complementary
#A338B2 #84B238 #38B266
monochromatic
#4E1B55 #782983 #A338B2 #BE5CCC #D08ADA

Accessibility & contrast

On white

5.58
#A338B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#A338B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338B2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338B2#FFFFFF#000000##FFFFFF
##A338B21.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B6
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#A54D71
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a338b2;
/* rgb */ color: rgb(163, 56, 178);
/* oklch */ color: oklch(54.3% 0.201 322.5);
Tailwind
colors: {
  custom: {
    50: '#c278c9',
    500: '#a338b2',
    950: '#000000',
  },
}
SCSS
$custom: #a338b2;
$custom-light: #c278c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a338b2",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 292.623,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54312,
    "c": 0.20108,
    "h": 322.5
  },
  "luminance": 0.13829
}

Semantic roles & 50–950 ramp

primary
#A338B2
secondary
#8AC581
accent
#DC4C5E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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