#A338B6#A338B6

#A338B6 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.6% C 0.205 H 321.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#A338B6
RGBrgb(163, 56, 182)
HSLhsl(291, 53%, 47%)
HSVhsv(291, 69%, 71%)
CMYKcmyk(10.4%, 69.2%, 0%, 28.6%)
CIE-LABlab(44.22, 60.61, -45.84)
CIE-LCHlch(44.22, 75.99, 322.90°)
OKLaboklab(54.56% 0.1595 -0.1281)
OKLCHoklch(54.56% 0.205 321.2)
XYZxyz(24.9610, 13.9936, 45.6332)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338B6 #4BB638
analogous
#6438B6 #A338B6 #B6388A
triadic
#A338B6 #B6A338 #38B6A3
tetradic
#A338B6 #B66438 #4BB638 #388AB6
square
#A338B6 #B66438 #4BB638 #388AB6
split-complementary
#A338B6 #8AB638 #38B664
monochromatic
#4F1B58 #792A87 #A338B6 #BD5ECD #D08DDC

Accessibility & contrast

On white

5.53
#A338B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#A338B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338B6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338B6#FFFFFF#000000##FFFFFF
##A338B61.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0561BA
Deuteranopia (green-blind)
#466CB3
Tritanopia (blue-blind)
#A44E73
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a338b6;
/* rgb */ color: rgb(163, 56, 182);
/* oklch */ color: oklch(54.6% 0.205 321.2);
Tailwind
colors: {
  custom: {
    50: '#c278cc',
    500: '#a338b6',
    950: '#000000',
  },
}
SCSS
$custom: #a338b6;
$custom-light: #c278cc;
$custom-dark: #000000;
JSON
{
  "hex": "#a338b6",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 290.952,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54556,
    "c": 0.20455,
    "h": 321.2
  },
  "luminance": 0.13992
}

Semantic roles & 50–950 ramp

primary
#A338B6
secondary
#8EC684
accent
#DC4B61
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A338B6

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

Preview Lab → · Contrast checker → · Palette generator →

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