#A238B2#A238B2

#A238B2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.201 H 322.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#A238B2
RGBrgb(162, 56, 178)
HSLhsl(292, 52%, 46%)
HSVhsv(292, 69%, 70%)
CMYKcmyk(9%, 68.5%, 0%, 30.2%)
CIE-LABlab(43.84, 59.64, -44.11)
CIE-LCHlch(43.84, 74.18, 323.51°)
OKLaboklab(54.17% 0.1584 -0.1231)
OKLCHoklch(54.17% 0.201 322.2)
XYZxyz(24.3495, 13.7254, 43.4776)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238B2 #48B238
analogous
#6538B2 #A238B2 #B23885
triadic
#A238B2 #B2A238 #38B2A2
tetradic
#A238B2 #B26538 #48B238 #3885B2
square
#A238B2 #B26538 #48B238 #3885B2
split-complementary
#A238B2 #85B238 #38B265
monochromatic
#4D1B55 #782983 #A238B2 #BD5CCC #D08ADA

Accessibility & contrast

On white

5.61
#A238B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#A238B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238B2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238B2#FFFFFF#000000##FFFFFF
##A238B21.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B6
Deuteranopia (green-blind)
#486CAF
Tritanopia (blue-blind)
#A44D71
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a238b2;
/* rgb */ color: rgb(162, 56, 178);
/* oklch */ color: oklch(54.2% 0.201 322.2);
Tailwind
colors: {
  custom: {
    50: '#c178c9',
    500: '#a238b2',
    950: '#000000',
  },
}
SCSS
$custom: #a238b2;
$custom-light: #c178c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a238b2",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 292.131,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54172,
    "c": 0.20061,
    "h": 322.2
  },
  "luminance": 0.13724
}

Semantic roles & 50–950 ramp

primary
#A238B2
secondary
#8AC581
accent
#DC4C5F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A238B2

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

Preview Lab → · Contrast checker → · Palette generator →

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