#A238C4#A238C4

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

Color values

HEX#A238C4
RGBrgb(162, 56, 196)
HSLhsl(285, 56%, 49%)
HSVhsv(285, 71%, 77%)
CMYKcmyk(17.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(44.94, 63.07, -52.88)
CIE-LCHlch(44.94, 82.30, 320.02°)
OKLaboklab(55.31% 0.1574 -0.1487)
OKLCHoklch(55.31% 0.217 316.6)
XYZxyz(26.2768, 14.4963, 53.6278)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C4 #5AC438
analogous
#5C38C4 #A238C4 #C438A0
triadic
#A238C4 #C4A238 #38C4A2
tetradic
#A238C4 #C45C38 #5AC438 #38A0C4
square
#A238C4 #C45C38 #5AC438 #38A0C4
split-complementary
#A238C4 #A0C438 #38C45C
monochromatic
#531D65 #7B2A94 #A238C4 #B966D3 #CF96E1

Accessibility & contrast

On white

5.39
#A238C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A238C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C4#FFFFFF#000000##FFFFFF
##A238C41.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#396DC1
Tritanopia (blue-blind)
#A0557B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a238c4;
/* rgb */ color: rgb(162, 56, 196);
/* oklch */ color: oklch(55.3% 0.217 316.6);
Tailwind
colors: {
  custom: {
    50: '#c278d7',
    500: '#a238c4',
    950: '#000000',
  },
}
SCSS
$custom: #a238c4;
$custom-light: #c278d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c4",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 285.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55311,
    "c": 0.21653,
    "h": 316.6
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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