#A238AB#A238AB

#A238AB is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.8% C 0.195 H 324.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#A238AB
RGBrgb(162, 56, 171)
HSLhsl(295, 51%, 45%)
HSVhsv(295, 67%, 67%)
CMYKcmyk(5.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(43.44, 58.36, -40.61)
CIE-LCHlch(43.44, 71.10, 325.17°)
OKLaboklab(53.75% 0.1585 -0.1129)
OKLCHoklch(53.75% 0.195 324.5)
XYZxyz(23.6645, 13.4514, 39.8701)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238AB #41AB38
analogous
#6838AB #A238AB #AB387B
triadic
#A238AB #ABA238 #38ABA2
tetradic
#A238AB #AB6838 #41AB38 #387BAB
square
#A238AB #AB6838 #41AB38 #387BAB
split-complementary
#A238AB #7BAB38 #38AB68
monochromatic
#4B1A4F #76297D #A238AB #BF58C8 #D186D7

Accessibility & contrast

On white

5.69
#A238AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#A238AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238AB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238AB#FFFFFF#000000##FFFFFF
##A238AB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAE
Deuteranopia (green-blind)
#4D6BA8
Tritanopia (blue-blind)
#A54A6D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a238ab;
/* rgb */ color: rgb(162, 56, 171);
/* oklch */ color: oklch(53.8% 0.195 324.5);
Tailwind
colors: {
  custom: {
    50: '#c177c4',
    500: '#a238ab',
    950: '#000000',
  },
}
SCSS
$custom: #a238ab;
$custom-light: #c177c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a238ab",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 295.304,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53754,
    "c": 0.19456,
    "h": 324.5
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#A238AB
secondary
#83C17D
accent
#DA4E59
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A238AB

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

Preview Lab → · Contrast checker → · Palette generator →

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