#A6238C#A6238C

#A6238C is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.8% C 0.197 H 337.7°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A6238C
RGBrgb(166, 35, 140)
HSLhsl(312, 65%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 78.9%, 15.7%, 34.9%)
CIE-LABlab(39.92, 61.52, -27.44)
CIE-LCHlch(39.92, 67.36, 335.96°)
OKLaboklab(50.83% 0.182 -0.0746)
OKLCHoklch(50.83% 0.197 337.7)
XYZxyz(21.0610, 11.2045, 25.8594)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6238C #23A63D
analogous
#7E23A6 #A6238C #A6234B
triadic
#A6238C #8CA623 #238CA6
tetradic
#A6238C #A67E23 #23A63D #234BA6
square
#A6238C #A67E23 #23A63D #234BA6
split-complementary
#A6238C #4BA623 #23A67E
monochromatic
#410E37 #731861 #A6238C #D432B4 #DF65C6

Accessibility & contrast

On white

6.48
#A6238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#A6238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6238C
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6238C#FFFFFF#000000##FFFFFF
##A6238C1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518F
Deuteranopia (green-blind)
#576589
Tritanopia (blue-blind)
#AF2B56
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6238c;
/* rgb */ color: rgb(166, 35, 140);
/* oklch */ color: oklch(50.8% 0.197 337.7);
Tailwind
colors: {
  custom: {
    50: '#c46eae',
    500: '#a6238c',
    950: '#000000',
  },
}
SCSS
$custom: #a6238c;
$custom-light: #c46eae;
$custom-dark: #000000;
JSON
{
  "hex": "#a6238c",
  "rgb": {
    "r": 166,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 311.908,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50826,
    "c": 0.19672,
    "h": 337.7
  },
  "luminance": 0.11203
}

Semantic roles & 50–950 ramp

primary
#A6238C
secondary
#61C475
accent
#E86140
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6238C

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

Preview Lab → · Contrast checker → · Palette generator →

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