#A6238A#A6238A

#A6238A is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.7% C 0.195 H 338.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#A6238A
RGBrgb(166, 35, 138)
HSLhsl(313, 65%, 39%)
HSVhsv(313, 79%, 65%)
CMYKcmyk(0%, 78.9%, 16.9%, 34.9%)
CIE-LABlab(39.83, 61.24, -26.36)
CIE-LCHlch(39.83, 66.67, 336.71°)
OKLaboklab(50.72% 0.1818 -0.0715)
OKLCHoklch(50.72% 0.195 338.5)
XYZxyz(20.9149, 11.1461, 25.0898)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6238A #23A63F
analogous
#8023A6 #A6238A #A62349
triadic
#A6238A #8AA623 #238AA6
tetradic
#A6238A #A68023 #23A63F #2349A6
square
#A6238A #A68023 #23A63F #2349A6
split-complementary
#A6238A #49A623 #23A680
monochromatic
#410E36 #731860 #A6238A #D432B1 #DF65C5

Accessibility & contrast

On white

6.50
#A6238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#A6238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6238A
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6238A#FFFFFF#000000##FFFFFF
##A6238A1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#586587
Tritanopia (blue-blind)
#B02A55
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6238a;
/* rgb */ color: rgb(166, 35, 138);
/* oklch */ color: oklch(50.7% 0.195 338.5);
Tailwind
colors: {
  custom: {
    50: '#c46eac',
    500: '#a6238a',
    950: '#000000',
  },
}
SCSS
$custom: #a6238a;
$custom-light: #c46eac;
$custom-dark: #000000;
JSON
{
  "hex": "#a6238a",
  "rgb": {
    "r": 166,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 312.824,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50724,
    "c": 0.1954,
    "h": 338.5
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#A6238A
secondary
#61C476
accent
#E86440
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A6238A

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

Preview Lab → · Contrast checker → · Palette generator →

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