#A238C3#A238C3

#A238C3 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.216 H 316.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#A238C3
RGBrgb(162, 56, 195)
HSLhsl(286, 55%, 49%)
HSVhsv(286, 71%, 76%)
CMYKcmyk(16.9%, 71.3%, 0%, 23.5%)
CIE-LABlab(44.87, 62.87, -52.40)
CIE-LCHlch(44.87, 81.85, 320.19°)
OKLaboklab(55.25% 0.1575 -0.1473)
OKLCHoklch(55.25% 0.216 316.9)
XYZxyz(26.1633, 14.4509, 53.0303)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C3 #59C338
analogous
#5C38C3 #A238C3 #C3389F
triadic
#A238C3 #C3A238 #38C3A2
tetradic
#A238C3 #C35C38 #59C338 #389FC3
square
#A238C3 #C35C38 #59C338 #389FC3
split-complementary
#A238C3 #9FC338 #38C35C
monochromatic
#531D64 #7B2A93 #A238C3 #B965D3 #CF95E1

Accessibility & contrast

On white

5.40
#A238C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#A238C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C3#FFFFFF#000000##FFFFFF
##A238C31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C7
Deuteranopia (green-blind)
#3A6DC0
Tritanopia (blue-blind)
#A0547A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a238c3;
/* rgb */ color: rgb(162, 56, 195);
/* oklch */ color: oklch(55.2% 0.216 316.9);
Tailwind
colors: {
  custom: {
    50: '#c178d6',
    500: '#a238c3',
    950: '#000000',
  },
}
SCSS
$custom: #a238c3;
$custom-light: #c178d6;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c3",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 285.755,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55245,
    "c": 0.21564,
    "h": 316.9
  },
  "luminance": 0.1445
}

Semantic roles & 50–950 ramp

primary
#A238C3
secondary
#9ACC8B
accent
#DF496D
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A238C3

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

Preview Lab → · Contrast checker → · Palette generator →

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