#A338FF#A338FF

#A338FF is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 59.7% C 0.270 H 303.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#A338FF
RGBrgb(163, 56, 255)
HSLhsl(272, 100%, 61%)
HSVhsv(272, 78%, 100%)
CMYKcmyk(36.1%, 78%, 0%, 0%)
CIE-LABlab(49.30, 75.44, -79.34)
CIE-LCHlch(49.30, 109.48, 313.56°)
OKLaboklab(59.73% 0.1476 -0.2264)
OKLCHoklch(59.73% 0.27 303.1)
XYZxyz(34.5642, 17.8349, 96.2099)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A338FF #94FF38
analogous
#3F38FF #A338FF #FF38F8
triadic
#A338FF #FFA338 #38FFA3
tetradic
#A338FF #FF3F38 #94FF38 #38F8FF
square
#A338FF #FF3F38 #94FF38 #38F8FF
split-complementary
#A338FF #F8FF38 #38FF3F
monochromatic
#6500BD #8600FA #A338FF #BF75FF #DCB2FF

Accessibility & contrast

On white

4.60
#A338FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#A338FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A338FF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A338FF#FFFFFF#000000##FFFFFF
##A338FF1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FF
Deuteranopia (green-blind)
#0075FB
Tritanopia (blue-blind)
#906E9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a338ff;
/* rgb */ color: rgb(163, 56, 255);
/* oklch */ color: oklch(59.7% 0.270 303.1);
Tailwind
colors: {
  custom: {
    50: '#c67bff',
    500: '#a338ff',
    950: '#000000',
  },
}
SCSS
$custom: #a338ff;
$custom-light: #c67bff;
$custom-dark: #000000;
JSON
{
  "hex": "#a338ff",
  "rgb": {
    "r": 163,
    "g": 56,
    "b": 255
  },
  "hsl": {
    "h": 272.261,
    "s": 100,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59733,
    "c": 0.2703,
    "h": 303.1
  },
  "luminance": 0.17835
}

Semantic roles & 50–950 ramp

primary
#A338FF
secondary
#C7EFA4
accent
#E6006A
background
#FCF7FF
surface
#F9EEFF
border
#D2C9D7
text
#140A18
muted
#827C86

Preview Lab

Preview with #A338FF

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

Preview Lab → · Contrast checker → · Palette generator →

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