#A238A2#A238A2

#A238A2 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.2% C 0.187 H 327.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A238A2
RGBrgb(162, 56, 162)
HSLhsl(300, 49%, 43%)
HSVhsv(300, 65%, 64%)
CMYKcmyk(0%, 65.4%, 0%, 36.5%)
CIE-LABlab(42.94, 56.77, -36.03)
CIE-LCHlch(42.94, 67.24, 327.59°)
OKLaboklab(53.24% 0.1582 -0.0996)
OKLCHoklch(53.24% 0.187 327.8)
XYZxyz(22.8357, 13.1199, 35.5050)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238A2 #38A238
analogous
#6D38A2 #A238A2 #A2386D
triadic
#A238A2 #A2A238 #38A2A2
tetradic
#A238A2 #A26D38 #38A238 #386DA2
square
#A238A2 #A26D38 #38A238 #386DA2
split-complementary
#A238A2 #6DA238 #38A26D
monochromatic
#471947 #752875 #A238A2 #C453C4 #D381D3

Accessibility & contrast

On white

5.80
#A238A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#A238A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238A2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238A2#FFFFFF#000000##FFFFFF
##A238A21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA5
Deuteranopia (green-blind)
#526A9F
Tritanopia (blue-blind)
#A74668
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a238a2;
/* rgb */ color: rgb(162, 56, 162);
/* oklch */ color: oklch(53.2% 0.187 327.8);
Tailwind
colors: {
  custom: {
    50: '#c177be',
    500: '#a238a2',
    950: '#000000',
  },
}
SCSS
$custom: #a238a2;
$custom-light: #c177be;
$custom-dark: #000000;
JSON
{
  "hex": "#a238a2",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 300,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5324,
    "c": 0.18695,
    "h": 327.8
  },
  "luminance": 0.13118
}

Semantic roles & 50–950 ramp

primary
#A238A2
secondary
#79BD79
accent
#D85050
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A238A2

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

Preview Lab → · Contrast checker → · Palette generator →

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