#A237D4#A237D4

#A237D4 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.232 H 312.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#A237D4
RGBrgb(162, 55, 212)
HSLhsl(281, 65%, 52%)
HSVhsv(281, 74%, 83%)
CMYKcmyk(23.6%, 74.1%, 0%, 16.9%)
CIE-LABlab(45.86, 66.63, -60.63)
CIE-LCHlch(45.86, 90.08, 317.70°)
OKLaboklab(56.31% 0.1563 -0.1715)
OKLCHoklch(56.31% 0.232 312.4)
XYZxyz(28.1480, 15.1680, 63.7195)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A237D4 #69D437
analogous
#5437D4 #A237D4 #D437B7
triadic
#A237D4 #D4A237 #37D4A2
tetradic
#A237D4 #D45437 #69D437 #37B7D4
square
#A237D4 #D45437 #69D437 #37B7D4
split-complementary
#A237D4 #B7D437 #37D454
monochromatic
#591A77 #7F24A9 #A237D4 #B969DF #D19CEA

Accessibility & contrast

On white

5.21
#A237D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A237D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A237D4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A237D4#FFFFFF#000000##FFFFFF
##A237D41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#216FD1
Tritanopia (blue-blind)
#9C5B83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a237d4;
/* rgb */ color: rgb(162, 55, 212);
/* oklch */ color: oklch(56.3% 0.232 312.4);
Tailwind
colors: {
  custom: {
    50: '#c278e2',
    500: '#a237d4',
    950: '#000000',
  },
}
SCSS
$custom: #a237d4;
$custom-light: #c278e2;
$custom-dark: #000000;
JSON
{
  "hex": "#a237d4",
  "rgb": {
    "r": 162,
    "g": 55,
    "b": 212
  },
  "hsl": {
    "h": 280.892,
    "s": 64.609,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.23202,
    "h": 312.4
  },
  "luminance": 0.15167
}

Semantic roles & 50–950 ramp

primary
#A237D4
secondary
#A7D691
accent
#E84076
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A15
muted
#827C84

Preview Lab

Preview with #A237D4

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

Preview Lab → · Contrast checker → · Palette generator →

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