#A238C9#A238C9

#A238C9 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.221 H 315.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#A238C9
RGBrgb(162, 56, 201)
HSLhsl(284, 57%, 50%)
HSVhsv(284, 72%, 79%)
CMYKcmyk(19.4%, 72.1%, 0%, 21.2%)
CIE-LABlab(45.26, 64.05, -55.26)
CIE-LCHlch(45.26, 84.59, 319.21°)
OKLaboklab(55.64% 0.1569 -0.1557)
OKLCHoklch(55.64% 0.221 315.2)
XYZxyz(26.8554, 14.7278, 56.6751)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C9 #5FC938
analogous
#5938C9 #A238C9 #C938A7
triadic
#A238C9 #C9A238 #38C9A2
tetradic
#A238C9 #C95938 #5FC938 #38A7C9
square
#A238C9 #C95938 #5FC938 #38A7C9
split-complementary
#A238C9 #A7C938 #38C959
monochromatic
#551D6A #7C2A9A #A238C9 #B868D6 #CF98E3

Accessibility & contrast

On white

5.32
#A238C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A238C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C9#FFFFFF#000000##FFFFFF
##A238C91.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#336EC6
Tritanopia (blue-blind)
#9F577D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a238c9;
/* rgb */ color: rgb(162, 56, 201);
/* oklch */ color: oklch(55.6% 0.221 315.2);
Tailwind
colors: {
  custom: {
    50: '#c278da',
    500: '#a238c9',
    950: '#000000',
  },
}
SCSS
$custom: #a238c9;
$custom-light: #c278da;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c9",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 283.862,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55643,
    "c": 0.22102,
    "h": 315.2
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#A238C9
secondary
#9FCF8E
accent
#E14770
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238C9

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

Preview Lab → · Contrast checker → · Palette generator →

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