#A338B5#A338B5

#A338B5 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.5% C 0.204 H 321.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#A338B5
RGBrgb(163, 56, 181)
HSLhsl(291, 53%, 46%)
HSVhsv(291, 69%, 71%)
CMYKcmyk(9.9%, 69.1%, 0%, 29%)
CIE-LABlab(44.16, 60.42, -45.34)
CIE-LCHlch(44.16, 75.54, 323.11°)
OKLaboklab(54.49% 0.1595 -0.1266)
OKLCHoklch(54.49% 0.204 321.6)
XYZxyz(24.8580, 13.9524, 45.0908)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338B5 #4AB538
analogous
#6538B5 #A338B5 #B53889
triadic
#A338B5 #B5A338 #38B5A3
tetradic
#A338B5 #B56538 #4AB538 #3889B5
square
#A338B5 #B56538 #4AB538 #3889B5
split-complementary
#A338B5 #89B538 #38B565
monochromatic
#4F1B58 #792A86 #A338B5 #BD5DCD #D08CDB

Accessibility & contrast

On white

5.54
#A338B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#A338B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338B5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338B5#FFFFFF#000000##FFFFFF
##A338B51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0961B9
Deuteranopia (green-blind)
#476CB2
Tritanopia (blue-blind)
#A54E72
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a338b5;
/* rgb */ color: rgb(163, 56, 181);
/* oklch */ color: oklch(54.5% 0.204 321.6);
Tailwind
colors: {
  custom: {
    50: '#c278cc',
    500: '#a338b5',
    950: '#000000',
  },
}
SCSS
$custom: #a338b5;
$custom-light: #c278cc;
$custom-dark: #000000;
JSON
{
  "hex": "#a338b5",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 291.36,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54494,
    "c": 0.20368,
    "h": 321.6
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#A338B5
secondary
#8DC683
accent
#DC4C60
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A338B5

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

Preview Lab → · Contrast checker → · Palette generator →

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