#A238AA#A238AA

#A238AA is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.7% C 0.194 H 324.9°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#A238AA
RGBrgb(162, 56, 170)
HSLhsl(296, 50%, 44%)
HSVhsv(296, 67%, 67%)
CMYKcmyk(4.7%, 67.1%, 0%, 33.3%)
CIE-LABlab(43.38, 58.18, -40.10)
CIE-LCHlch(43.38, 70.67, 325.42°)
OKLaboklab(53.7% 0.1585 -0.1114)
OKLCHoklch(53.7% 0.194 324.9)
XYZxyz(23.5696, 13.4134, 39.3700)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238AA #40AA38
analogous
#6938AA #A238AA #AA3879
triadic
#A238AA #AAA238 #38AAA2
tetradic
#A238AA #AA6938 #40AA38 #3879AA
square
#A238AA #AA6938 #40AA38 #3879AA
split-complementary
#A238AA #79AA38 #38AA69
monochromatic
#4A1A4E #76297C #A238AA #C057C8 #D185D7

Accessibility & contrast

On white

5.70
#A238AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#A238AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238AA
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238AA#FFFFFF#000000##FFFFFF
##A238AA1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205EAD
Deuteranopia (green-blind)
#4D6BA7
Tritanopia (blue-blind)
#A54A6C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #a238aa;
/* rgb */ color: rgb(162, 56, 170);
/* oklch */ color: oklch(53.7% 0.194 324.9);
Tailwind
colors: {
  custom: {
    50: '#c177c4',
    500: '#a238aa',
    950: '#000000',
  },
}
SCSS
$custom: #a238aa;
$custom-light: #c177c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a238aa",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 295.789,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53696,
    "c": 0.1937,
    "h": 324.9
  },
  "luminance": 0.13412
}

Semantic roles & 50–950 ramp

primary
#A238AA
secondary
#82C17D
accent
#DA4E58
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130912
muted
#827B81

Preview Lab

Preview with #A238AA

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

Preview Lab → · Contrast checker → · Palette generator →

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