#A238B8#A238B8

#A238B8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.5% C 0.206 H 320.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#A238B8
RGBrgb(162, 56, 184)
HSLhsl(290, 53%, 47%)
HSVhsv(290, 70%, 72%)
CMYKcmyk(12%, 69.6%, 0%, 27.8%)
CIE-LABlab(44.19, 60.76, -47.07)
CIE-LCHlch(44.19, 76.86, 322.24°)
OKLaboklab(54.54% 0.1582 -0.1317)
OKLCHoklch(54.54% 0.206 320.2)
XYZxyz(24.9651, 13.9717, 46.7199)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238B8 #4EB838
analogous
#6238B8 #A238B8 #B8388E
triadic
#A238B8 #B8A238 #38B8A2
tetradic
#A238B8 #B86238 #4EB838 #388EB8
square
#A238B8 #B86238 #4EB838 #388EB8
split-complementary
#A238B8 #8EB838 #38B862
monochromatic
#4F1B5A #792A89 #A238B8 #BB5FCE #CF8EDD

Accessibility & contrast

On white

5.54
#A238B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#A238B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238B8
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238B8#FFFFFF#000000##FFFFFF
##A238B81.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#446CB5
Tritanopia (blue-blind)
#A35074
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a238b8;
/* rgb */ color: rgb(162, 56, 184);
/* oklch */ color: oklch(54.5% 0.206 320.2);
Tailwind
colors: {
  custom: {
    50: '#c178ce',
    500: '#a238b8',
    950: '#000000',
  },
}
SCSS
$custom: #a238b8;
$custom-light: #c178ce;
$custom-dark: #000000;
JSON
{
  "hex": "#a238b8",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 289.688,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.20587,
    "h": 320.2
  },
  "luminance": 0.1397
}

Semantic roles & 50–950 ramp

primary
#A238B8
secondary
#90C785
accent
#DD4B64
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #A238B8

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

Preview Lab → · Contrast checker → · Palette generator →

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