#A238C2#A238C2

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

Color values

HEX#A238C2
RGBrgb(162, 56, 194)
HSLhsl(286, 55%, 49%)
HSVhsv(286, 71%, 76%)
CMYKcmyk(16.5%, 71.1%, 0%, 23.9%)
CIE-LABlab(44.81, 62.68, -51.92)
CIE-LCHlch(44.81, 81.39, 320.36°)
OKLaboklab(55.18% 0.1576 -0.1459)
OKLCHoklch(55.18% 0.215 317.2)
XYZxyz(26.0506, 14.4059, 52.4369)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C2 #58C238
analogous
#5D38C2 #A238C2 #C2389D
triadic
#A238C2 #C2A238 #38C2A2
tetradic
#A238C2 #C25D38 #58C238 #389DC2
square
#A238C2 #C25D38 #58C238 #389DC2
split-complementary
#A238C2 #9DC238 #38C25D
monochromatic
#531D63 #7A2A93 #A238C2 #B965D2 #CF94E0

Accessibility & contrast

On white

5.41
#A238C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#A238C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C2#FFFFFF#000000##FFFFFF
##A238C21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#3B6DBF
Tritanopia (blue-blind)
#A1547A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a238c2;
/* rgb */ color: rgb(162, 56, 194);
/* oklch */ color: oklch(55.2% 0.215 317.2);
Tailwind
colors: {
  custom: {
    50: '#c178d5',
    500: '#a238c2',
    950: '#000000',
  },
}
SCSS
$custom: #a238c2;
$custom-light: #c178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c2",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 286.087,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5518,
    "c": 0.21474,
    "h": 317.2
  },
  "luminance": 0.14405
}

Semantic roles & 50–950 ramp

primary
#A238C2
secondary
#99CB8A
accent
#DF496C
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A238C2

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

Preview Lab → · Contrast checker → · Palette generator →

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