#A338CD#A338CD

#A338CD is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.225 H 314.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A338CD
RGBrgb(163, 56, 205)
HSLhsl(283, 60%, 51%)
HSVhsv(283, 73%, 80%)
CMYKcmyk(20.5%, 72.7%, 0%, 19.6%)
CIE-LABlab(45.67, 65.04, -56.91)
CIE-LCHlch(45.67, 86.42, 318.81°)
OKLaboklab(56.05% 0.1576 -0.1605)
OKLCHoklch(56.05% 0.225 314.5)
XYZxyz(27.5360, 15.0236, 59.1951)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338CD #62CD38
analogous
#5838CD #A338CD #CD38AC
triadic
#A338CD #CDA338 #38CDA3
tetradic
#A338CD #CD5838 #62CD38 #38ACCD
square
#A338CD #CD5838 #62CD38 #38ACCD
split-complementary
#A338CD #ACCD38 #38CD58
monochromatic
#571C6F #7E28A0 #A338CD #BA69D9 #D09AE6

Accessibility & contrast

On white

5.24
#A338CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A338CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338CD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338CD#FFFFFF#000000##FFFFFF
##A338CD1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#306FCA
Tritanopia (blue-blind)
#9F5880
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a338cd;
/* rgb */ color: rgb(163, 56, 205);
/* oklch */ color: oklch(56.0% 0.225 314.5);
Tailwind
colors: {
  custom: {
    50: '#c379dd',
    500: '#a338cd',
    950: '#000000',
  },
}
SCSS
$custom: #a338cd;
$custom-light: #c379dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a338cd",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 283.087,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56046,
    "c": 0.22497,
    "h": 314.5
  },
  "luminance": 0.15023
}

Semantic roles & 50–950 ramp

primary
#A338CD
secondary
#A2D18F
accent
#E34571
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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