#A238BC#A238BC

#A238BC is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.209 H 319.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#A238BC
RGBrgb(162, 56, 188)
HSLhsl(288, 54%, 48%)
HSVhsv(288, 70%, 74%)
CMYKcmyk(13.8%, 70.2%, 0%, 26.3%)
CIE-LABlab(44.44, 61.52, -49.02)
CIE-LCHlch(44.44, 78.66, 321.45°)
OKLaboklab(54.79% 0.158 -0.1374)
OKLCHoklch(54.79% 0.209 319)
XYZxyz(25.3904, 14.1418, 48.9594)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238BC #52BC38
analogous
#6038BC #A238BC #BC3894
triadic
#A238BC #BCA238 #38BCA2
tetradic
#A238BC #BC6038 #52BC38 #3894BC
square
#A238BC #BC6038 #52BC38 #3894BC
split-complementary
#A238BC #94BC38 #38BC60
monochromatic
#511C5E #792A8D #A238BC #BA61D0 #CF90DE

Accessibility & contrast

On white

5.49
#A238BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#A238BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238BC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238BC#FFFFFF#000000##FFFFFF
##A238BC1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#416DB9
Tritanopia (blue-blind)
#A25176
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a238bc;
/* rgb */ color: rgb(162, 56, 188);
/* oklch */ color: oklch(54.8% 0.209 319.0);
Tailwind
colors: {
  custom: {
    50: '#c178d1',
    500: '#a238bc',
    950: '#000000',
  },
}
SCSS
$custom: #a238bc;
$custom-light: #c178d1;
$custom-dark: #000000;
JSON
{
  "hex": "#a238bc",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 288.182,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54793,
    "c": 0.20941,
    "h": 319
  },
  "luminance": 0.14141
}

Semantic roles & 50–950 ramp

primary
#A238BC
secondary
#94C987
accent
#DD4A67
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A238BC

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

Preview Lab → · Contrast checker → · Palette generator →

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