#A238CD#A238CD

#A238CD is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.225 H 314.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#A238CD
RGBrgb(162, 56, 205)
HSLhsl(283, 60%, 51%)
HSVhsv(283, 73%, 80%)
CMYKcmyk(21%, 72.7%, 0%, 19.6%)
CIE-LABlab(45.52, 64.84, -57.15)
CIE-LCHlch(45.52, 86.43, 318.61°)
OKLaboklab(55.91% 0.1564 -0.1612)
OKLCHoklch(55.91% 0.225 314.1)
XYZxyz(27.3320, 14.9184, 59.1856)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238CD #63CD38
analogous
#5738CD #A238CD #CD38AD
triadic
#A238CD #CDA238 #38CDA2
tetradic
#A238CD #CD5738 #63CD38 #38ADCD
square
#A238CD #CD5738 #63CD38 #38ADCD
split-complementary
#A238CD #ADCD38 #38CD57
monochromatic
#571C6F #7D28A0 #A238CD #B969D9 #D09AE6

Accessibility & contrast

On white

5.27
#A238CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A238CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238CD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238CD#FFFFFF#000000##FFFFFF
##A238CD1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#9E5880
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a238cd;
/* rgb */ color: rgb(162, 56, 205);
/* oklch */ color: oklch(55.9% 0.225 314.1);
Tailwind
colors: {
  custom: {
    50: '#c279dd',
    500: '#a238cd',
    950: '#000000',
  },
}
SCSS
$custom: #a238cd;
$custom-light: #c279dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a238cd",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 282.685,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55914,
    "c": 0.22462,
    "h": 314.1
  },
  "luminance": 0.14918
}

Semantic roles & 50–950 ramp

primary
#A238CD
secondary
#A2D18F
accent
#E34572
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238CD

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

Preview Lab → · Contrast checker → · Palette generator →

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