#A238AF#A238AF

#A238AF is a mid, vivid purple. Relative luminance 0.136; OKLCH L 54.0% C 0.198 H 323.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#A238AF
RGBrgb(162, 56, 175)
HSLhsl(293, 52%, 45%)
HSVhsv(293, 68%, 69%)
CMYKcmyk(7.4%, 68%, 0%, 31.4%)
CIE-LABlab(43.66, 59.09, -42.62)
CIE-LCHlch(43.66, 72.85, 324.20°)
OKLaboklab(53.99% 0.1585 -0.1187)
OKLCHoklch(53.99% 0.198 323.2)
XYZxyz(24.0516, 13.6062, 41.9085)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238AF #45AF38
analogous
#6638AF #A238AF #AF3881
triadic
#A238AF #AFA238 #38AFA2
tetradic
#A238AF #AF6638 #45AF38 #3881AF
square
#A238AF #AF6638 #45AF38 #3881AF
split-complementary
#A238AF #81AF38 #38AF66
monochromatic
#4C1A52 #772981 #A238AF #BE5ACA #D088D9

Accessibility & contrast

On white

5.64
#A238AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#A238AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238AF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238AF#FFFFFF#000000##FFFFFF
##A238AF1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175FB2
Deuteranopia (green-blind)
#4A6BAC
Tritanopia (blue-blind)
#A54C6F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a238af;
/* rgb */ color: rgb(162, 56, 175);
/* oklch */ color: oklch(54.0% 0.198 323.2);
Tailwind
colors: {
  custom: {
    50: '#c177c7',
    500: '#a238af',
    950: '#000000',
  },
}
SCSS
$custom: #a238af;
$custom-light: #c177c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a238af",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 293.445,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53991,
    "c": 0.198,
    "h": 323.2
  },
  "luminance": 0.13605
}

Semantic roles & 50–950 ramp

primary
#A238AF
secondary
#87C380
accent
#DB4D5C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A238AF

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

Preview Lab → · Contrast checker → · Palette generator →

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