#A338CF#A338CF

#A338CF is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.227 H 313.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A338CF
RGBrgb(163, 56, 207)
HSLhsl(283, 61%, 52%)
HSVhsv(283, 73%, 81%)
CMYKcmyk(21.3%, 72.9%, 0%, 18.8%)
CIE-LABlab(45.80, 65.44, -57.85)
CIE-LCHlch(45.80, 87.34, 318.52°)
OKLaboklab(56.18% 0.1574 -0.1633)
OKLCHoklch(56.18% 0.227 313.9)
XYZxyz(27.7790, 15.1208, 60.4747)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338CF #64CF38
analogous
#5838CF #A338CF #CF38AF
triadic
#A338CF #CFA338 #38CFA3
tetradic
#A338CF #CF5838 #64CF38 #38AFCF
square
#A338CF #CF5838 #64CF38 #38AFCF
split-complementary
#A338CF #AFCF38 #38CF58
monochromatic
#581B71 #7F27A3 #A338CF #BA69DB #D19BE7

Accessibility & contrast

On white

5.22
#A338CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A338CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338CF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338CF#FFFFFF#000000##FFFFFF
##A338CF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#2D6FCC
Tritanopia (blue-blind)
#9F5981
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a338cf;
/* rgb */ color: rgb(163, 56, 207);
/* oklch */ color: oklch(56.2% 0.227 313.9);
Tailwind
colors: {
  custom: {
    50: '#c379de',
    500: '#a338cf',
    950: '#000000',
  },
}
SCSS
$custom: #a338cf;
$custom-light: #c379de;
$custom-dark: #000000;
JSON
{
  "hex": "#a338cf",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 282.517,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56182,
    "c": 0.22676,
    "h": 313.9
  },
  "luminance": 0.1512
}

Semantic roles & 50–950 ramp

primary
#A338CF
secondary
#A4D390
accent
#E44472
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A338CF

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

Preview Lab → · Contrast checker → · Palette generator →

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