#A6238E#A6238E

#A6238E is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.9% C 0.198 H 336.9°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A6238E
RGBrgb(166, 35, 142)
HSLhsl(311, 65%, 39%)
HSVhsv(311, 79%, 65%)
CMYKcmyk(0%, 78.9%, 14.5%, 34.9%)
CIE-LABlab(40.02, 61.80, -28.51)
CIE-LCHlch(40.02, 68.06, 335.24°)
OKLaboklab(50.93% 0.1822 -0.0776)
OKLCHoklch(50.93% 0.198 336.9)
XYZxyz(21.2098, 11.2641, 26.6431)
Luminance0.1126 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6238E #23A63B
analogous
#7C23A6 #A6238E #A6234D
triadic
#A6238E #8EA623 #238EA6
tetradic
#A6238E #A67C23 #23A63B #234DA6
square
#A6238E #A67C23 #23A63B #234DA6
split-complementary
#A6238E #4DA623 #23A67C
monochromatic
#410E38 #731863 #A6238E #D432B6 #DF65C8

Accessibility & contrast

On white

6.46
#A6238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#A6238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6238E
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6238E#FFFFFF#000000##FFFFFF
##A6238E1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#56658B
Tritanopia (blue-blind)
#AF2C57
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6238e;
/* rgb */ color: rgb(166, 35, 142);
/* oklch */ color: oklch(50.9% 0.198 336.9);
Tailwind
colors: {
  custom: {
    50: '#c46eaf',
    500: '#a6238e',
    950: '#000000',
  },
}
SCSS
$custom: #a6238e;
$custom-light: #c46eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#a6238e",
  "rgb": {
    "r": 166,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 310.992,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50929,
    "c": 0.19807,
    "h": 336.9
  },
  "luminance": 0.11262
}

Semantic roles & 50–950 ramp

primary
#A6238E
secondary
#61C473
accent
#E85F40
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6238E

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

Preview Lab → · Contrast checker → · Palette generator →

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