#A238D4#A238D4

#A238D4 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.231 H 312.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A238D4
RGBrgb(162, 56, 212)
HSLhsl(281, 64%, 53%)
HSVhsv(281, 74%, 83%)
CMYKcmyk(23.6%, 73.6%, 0%, 16.9%)
CIE-LABlab(45.99, 66.25, -60.42)
CIE-LCHlch(45.99, 89.66, 317.64°)
OKLaboklab(56.4% 0.1554 -0.1708)
OKLCHoklch(56.4% 0.231 312.3)
XYZxyz(28.1960, 15.2640, 63.7355)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238D4 #6AD438
analogous
#5438D4 #A238D4 #D438B8
triadic
#A238D4 #D4A238 #38D4A2
tetradic
#A238D4 #D45438 #6AD438 #38B8D4
square
#A238D4 #D45438 #6AD438 #38B8D4
split-complementary
#A238D4 #B8D438 #38D454
monochromatic
#5A1A78 #7F25AA #A238D4 #BA6ADF #D19DEA

Accessibility & contrast

On white

5.18
#A238D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A238D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238D4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238D4#FFFFFF#000000##FFFFFF
##A238D41.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#236FD1
Tritanopia (blue-blind)
#9C5B84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a238d4;
/* rgb */ color: rgb(162, 56, 212);
/* oklch */ color: oklch(56.4% 0.231 312.3);
Tailwind
colors: {
  custom: {
    50: '#c279e2',
    500: '#a238d4',
    950: '#000000',
  },
}
SCSS
$custom: #a238d4;
$custom-light: #c279e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a238d4",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 280.769,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56397,
    "c": 0.23095,
    "h": 312.3
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#A238D4
secondary
#A8D692
accent
#E74076
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238D4

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

Preview Lab → · Contrast checker → · Palette generator →

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