#A6238B#A6238B

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

Color values

HEX#A6238B
RGBrgb(166, 35, 139)
HSLhsl(312, 65%, 39%)
HSVhsv(312, 79%, 65%)
CMYKcmyk(0%, 78.9%, 16.3%, 34.9%)
CIE-LABlab(39.87, 61.38, -26.90)
CIE-LCHlch(39.87, 67.01, 336.33°)
OKLaboklab(50.78% 0.1819 -0.0731)
OKLCHoklch(50.78% 0.196 338.1)
XYZxyz(20.9876, 11.1752, 25.4728)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6238B #23A63E
analogous
#7F23A6 #A6238B #A6234A
triadic
#A6238B #8BA623 #238BA6
tetradic
#A6238B #A67F23 #23A63E #234AA6
square
#A6238B #A67F23 #23A63E #234AA6
split-complementary
#A6238B #4AA623 #23A67F
monochromatic
#410E36 #731861 #A6238B #D432B3 #DF65C5

Accessibility & contrast

On white

6.49
#A6238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6238B
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6238B#FFFFFF#000000##FFFFFF
##A6238B1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#576588
Tritanopia (blue-blind)
#AF2B55
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a6238b;
/* rgb */ color: rgb(166, 35, 139);
/* oklch */ color: oklch(50.8% 0.196 338.1);
Tailwind
colors: {
  custom: {
    50: '#c46ead',
    500: '#a6238b',
    950: '#000000',
  },
}
SCSS
$custom: #a6238b;
$custom-light: #c46ead;
$custom-dark: #000000;
JSON
{
  "hex": "#a6238b",
  "rgb": {
    "r": 166,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 312.366,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50775,
    "c": 0.19606,
    "h": 338.1
  },
  "luminance": 0.11173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A6238B

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

Preview Lab → · Contrast checker → · Palette generator →

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