#8A2278#8A2278

#8A2278 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.1% C 0.168 H 336.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8A2278
RGBrgb(138, 34, 120)
HSLhsl(310, 60%, 34%)
HSVhsv(310, 75%, 54%)
CMYKcmyk(0%, 75.4%, 13%, 45.9%)
CIE-LABlab(33.78, 52.23, -25.00)
CIE-LCHlch(33.78, 57.91, 334.42°)
OKLaboklab(45.14% 0.1531 -0.0682)
OKLCHoklch(45.14% 0.168 336)
XYZxyz(14.4436, 7.9047, 18.5307)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2278 #228A34
analogous
#68228A #8A2278 #8A2244
triadic
#8A2278 #788A22 #22788A
tetradic
#8A2278 #8A6822 #228A34 #22448A
square
#8A2278 #8A6822 #228A34 #22448A
split-complementary
#8A2278 #448A22 #228A68
monochromatic
#280A23 #59164D #8A2278 #BB2EA3 #D452BE

Accessibility & contrast

On white

8.14
#8A2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2278
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2278#FFFFFF#000000##FFFFFF
##8A22781.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#485576
Tritanopia (blue-blind)
#912A4A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a2278;
/* rgb */ color: rgb(138, 34, 120);
/* oklch */ color: oklch(45.1% 0.168 336.0);
Tailwind
colors: {
  custom: {
    50: '#b0689f',
    500: '#8a2278',
    950: '#000000',
  },
}
SCSS
$custom: #8a2278;
$custom-light: #b0689f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2278",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 310.385,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45135,
    "c": 0.16762,
    "h": 336
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#8A2278
secondary
#50B862
accent
#E46044
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2278

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

Preview Lab → · Contrast checker → · Palette generator →

#8A2278 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva