#A238C7#A238C7

#A238C7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.219 H 315.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#A238C7
RGBrgb(162, 56, 199)
HSLhsl(284, 56%, 50%)
HSVhsv(284, 72%, 78%)
CMYKcmyk(18.6%, 71.9%, 0%, 22%)
CIE-LABlab(45.13, 63.65, -54.31)
CIE-LCHlch(45.13, 83.68, 319.53°)
OKLaboklab(55.51% 0.1571 -0.1529)
OKLCHoklch(55.51% 0.219 315.8)
XYZxyz(26.6216, 14.6343, 55.4441)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238C7 #5DC738
analogous
#5B38C7 #A238C7 #C738A4
triadic
#A238C7 #C7A238 #38C7A2
tetradic
#A238C7 #C75B38 #5DC738 #38A4C7
square
#A238C7 #C75B38 #5DC738 #38A4C7
split-complementary
#A238C7 #A4C738 #38C75B
monochromatic
#541D67 #7B2B97 #A238C7 #B868D4 #CF98E2

Accessibility & contrast

On white

5.35
#A238C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#A238C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238C7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238C7#FFFFFF#000000##FFFFFF
##A238C71.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#366EC4
Tritanopia (blue-blind)
#9F567C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a238c7;
/* rgb */ color: rgb(162, 56, 199);
/* oklch */ color: oklch(55.5% 0.219 315.8);
Tailwind
colors: {
  custom: {
    50: '#c278d9',
    500: '#a238c7',
    950: '#000000',
  },
}
SCSS
$custom: #a238c7;
$custom-light: #c278d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a238c7",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 284.476,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.55509,
    "c": 0.21922,
    "h": 315.8
  },
  "luminance": 0.14633
}

Semantic roles & 50–950 ramp

primary
#A238C7
secondary
#9ECD8D
accent
#DF486F
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238C7

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

Preview Lab → · Contrast checker → · Palette generator →

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