#A338DD#A338DD

#A338DD is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 57.2% C 0.239 H 310.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A338DD
RGBrgb(163, 56, 221)
HSLhsl(279, 71%, 54%)
HSVhsv(279, 75%, 87%)
CMYKcmyk(26.2%, 74.7%, 0%, 13.3%)
CIE-LABlab(46.76, 68.28, -64.32)
CIE-LCHlch(46.76, 93.80, 316.71°)
OKLaboklab(57.16% 0.1552 -0.1823)
OKLCHoklch(57.16% 0.239 310.4)
XYZxyz(29.5670, 15.8360, 69.8917)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338DD #72DD38
analogous
#5138DD #A338DD #DD38C5
triadic
#A338DD #DDA338 #38DDA3
tetradic
#A338DD #DD5138 #72DD38 #38C5DD
square
#A338DD #DD5138 #72DD38 #38C5DD
split-complementary
#A338DD #C5DD38 #38DD51
monochromatic
#5E1784 #831FB8 #A338DD #BB6CE6 #D3A1EF

Accessibility & contrast

On white

5.04
#A338DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A338DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A338DD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338DD#FFFFFF#000000##FFFFFF
##A338DD1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#0C70DA
Tritanopia (blue-blind)
#9B5F89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a338dd;
/* rgb */ color: rgb(163, 56, 221);
/* oklch */ color: oklch(57.2% 0.239 310.4);
Tailwind
colors: {
  custom: {
    50: '#c379e8',
    500: '#a338dd',
    950: '#000000',
  },
}
SCSS
$custom: #a338dd;
$custom-light: #c379e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a338dd",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 278.909,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57164,
    "c": 0.2394,
    "h": 310.4
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#A338DD
secondary
#AEDB95
accent
#EE3A79
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A338DD

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

Preview Lab → · Contrast checker → · Palette generator →

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