#A238CA#A238CA

#A238CA is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.222 H 314.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A238CA
RGBrgb(162, 56, 202)
HSLhsl(284, 58%, 51%)
HSVhsv(284, 72%, 79%)
CMYKcmyk(19.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(45.32, 64.25, -55.74)
CIE-LCHlch(45.32, 85.05, 319.06°)
OKLaboklab(55.71% 0.1567 -0.1571)
OKLCHoklch(55.71% 0.222 314.9)
XYZxyz(26.9734, 14.7750, 57.2967)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238CA #60CA38
analogous
#5938CA #A238CA #CA38A9
triadic
#A238CA #CAA238 #38CAA2
tetradic
#A238CA #CA5938 #60CA38 #38A9CA
square
#A238CA #CA5938 #60CA38 #38A9CA
split-complementary
#A238CA #A9CA38 #38CA59
monochromatic
#561D6B #7C299B #A238CA #B968D7 #CF99E4

Accessibility & contrast

On white

5.31
#A238CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#A238CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238CA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238CA#FFFFFF#000000##FFFFFF
##A238CA1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#9F577E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a238ca;
/* rgb */ color: rgb(162, 56, 202);
/* oklch */ color: oklch(55.7% 0.222 314.9);
Tailwind
colors: {
  custom: {
    50: '#c278db',
    500: '#a238ca',
    950: '#000000',
  },
}
SCSS
$custom: #a238ca;
$custom-light: #c278db;
$custom-dark: #000000;
JSON
{
  "hex": "#a238ca",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 283.562,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5571,
    "c": 0.22192,
    "h": 314.9
  },
  "luminance": 0.14774
}

Semantic roles & 50–950 ramp

primary
#A238CA
secondary
#A0CF8E
accent
#E14771
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238CA

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

Preview Lab → · Contrast checker → · Palette generator →

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