#A238B4#A238B4

#A238B4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.202 H 321.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#A238B4
RGBrgb(162, 56, 180)
HSLhsl(291, 53%, 46%)
HSVhsv(291, 69%, 71%)
CMYKcmyk(10%, 68.9%, 0%, 29.4%)
CIE-LABlab(43.95, 60.01, -45.10)
CIE-LCHlch(43.95, 75.07, 323.07°)
OKLaboklab(54.29% 0.1584 -0.126)
OKLCHoklch(54.29% 0.202 321.5)
XYZxyz(24.5518, 13.8063, 44.5428)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238B4 #4AB438
analogous
#6438B4 #A238B4 #B43888
triadic
#A238B4 #B4A238 #38B4A2
tetradic
#A238B4 #B46438 #4AB438 #3888B4
square
#A238B4 #B46438 #4AB438 #3888B4
split-complementary
#A238B4 #88B438 #38B464
monochromatic
#4E1B57 #782985 #A238B4 #BC5DCD #CF8BDB

Accessibility & contrast

On white

5.58
#A238B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#A238B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238B4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238B4#FFFFFF#000000##FFFFFF
##A238B41.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A60B8
Deuteranopia (green-blind)
#476CB1
Tritanopia (blue-blind)
#A44E72
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a238b4;
/* rgb */ color: rgb(162, 56, 180);
/* oklch */ color: oklch(54.3% 0.202 321.5);
Tailwind
colors: {
  custom: {
    50: '#c178cb',
    500: '#a238b4',
    950: '#000000',
  },
}
SCSS
$custom: #a238b4;
$custom-light: #c178cb;
$custom-dark: #000000;
JSON
{
  "hex": "#a238b4",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 291.29,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54294,
    "c": 0.20236,
    "h": 321.5
  },
  "luminance": 0.13805
}

Semantic roles & 50–950 ramp

primary
#A238B4
secondary
#8CC582
accent
#DC4C61
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A238B4

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

Preview Lab → · Contrast checker → · Palette generator →

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