#A23798#A23798

#A23798 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.6% C 0.180 H 331.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A23798
RGBrgb(162, 55, 152)
HSLhsl(306, 49%, 43%)
HSVhsv(306, 66%, 64%)
CMYKcmyk(0%, 66%, 6.2%, 36.5%)
CIE-LABlab(42.28, 55.48, -31.08)
CIE-LCHlch(42.28, 63.59, 330.74°)
OKLaboklab(52.59% 0.1587 -0.0853)
OKLCHoklch(52.59% 0.18 331.7)
XYZxyz(21.9340, 12.6824, 30.9924)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A23798 #37A241
analogous
#7637A2 #A23798 #A23763
triadic
#A23798 #98A237 #3798A2
tetradic
#A23798 #A27637 #37A241 #3763A2
square
#A23798 #A27637 #37A241 #3763A2
split-complementary
#A23798 #63A237 #37A276
monochromatic
#471842 #74276D #A23798 #C452BA #D480CC

Accessibility & contrast

On white

5.94
#A23798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#A23798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A23798
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A23798#FFFFFF#000000##FFFFFF
##A237981.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#566995
Tritanopia (blue-blind)
#A94163
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a23798;
/* rgb */ color: rgb(162, 55, 152);
/* oklch */ color: oklch(52.6% 0.180 331.7);
Tailwind
colors: {
  custom: {
    50: '#c176b6',
    500: '#a23798',
    950: '#000000',
  },
}
SCSS
$custom: #a23798;
$custom-light: #c176b6;
$custom-dark: #000000;
JSON
{
  "hex": "#a23798",
  "rgb": {
    "r": 162,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 305.607,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.18011,
    "h": 331.7
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#A23798
secondary
#78BD7E
accent
#D95C4F
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A23798

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

Preview Lab → · Contrast checker → · Palette generator →

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