#A238C5#A238C5

#A238C5 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.217 H 316.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A238C5
RGBrgb(162, 56, 197)
HSLhsl(285, 56%, 50%)
HSVhsv(285, 72%, 77%)
CMYKcmyk(17.8%, 71.6%, 0%, 22.7%)
CIE-LABlab(45.00, 63.26, -53.36)
CIE-LCHlch(45.00, 82.76, 319.85°)
OKLaboklab(55.38% 0.1573 -0.1501)
OKLCHoklch(55.38% 0.217 316.3)
XYZxyz(26.3910, 14.5420, 54.2292)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C5 #5BC538
analogous
#5B38C5 #A238C5 #C538A2
triadic
#A238C5 #C5A238 #38C5A2
tetradic
#A238C5 #C55B38 #5BC538 #38A2C5
square
#A238C5 #C55B38 #5BC538 #38A2C5
split-complementary
#A238C5 #A2C538 #38C55B
monochromatic
#541D66 #7B2A95 #A238C5 #B967D4 #CF96E1

Accessibility & contrast

On white

5.37
#A238C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A238C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C5#FFFFFF#000000##FFFFFF
##A238C51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#386DC2
Tritanopia (blue-blind)
#A0557B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a238c5;
/* rgb */ color: rgb(162, 56, 197);
/* oklch */ color: oklch(55.4% 0.217 316.3);
Tailwind
colors: {
  custom: {
    50: '#c278d7',
    500: '#a238c5',
    950: '#000000',
  },
}
SCSS
$custom: #a238c5;
$custom-light: #c278d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c5",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 285.106,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55377,
    "c": 0.21744,
    "h": 316.3
  },
  "luminance": 0.14541
}

Semantic roles & 50–950 ramp

primary
#A238C5
secondary
#9CCD8C
accent
#DF496E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A238C5

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

Preview Lab → · Contrast checker → · Palette generator →

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