#8A247E#8A247E

#8A247E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.170 H 333.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A247E
RGBrgb(138, 36, 126)
HSLhsl(307, 59%, 34%)
HSVhsv(307, 74%, 54%)
CMYKcmyk(0%, 73.9%, 8.7%, 45.9%)
CIE-LABlab(34.34, 52.49, -27.89)
CIE-LCHlch(34.34, 59.44, 332.02°)
OKLaboklab(45.64% 0.1516 -0.0765)
OKLCHoklch(45.64% 0.17 333.2)
XYZxyz(14.8781, 8.1726, 20.5285)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A247E #248A30
analogous
#63248A #8A247E #8A244B
triadic
#8A247E #7E8A24 #247E8A
tetradic
#8A247E #8A6324 #248A30 #244B8A
square
#8A247E #8A6324 #248A30 #244B8A
split-complementary
#8A247E #4B8A24 #248A63
monochromatic
#290B25 #591752 #8A247E #BB31AA #D356C4

Accessibility & contrast

On white

7.97
#8A247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A247E
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A247E#FFFFFF#000000##FFFFFF
##8A247E1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#902E4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a247e;
/* rgb */ color: rgb(138, 36, 126);
/* oklch */ color: oklch(45.6% 0.170 333.2);
Tailwind
colors: {
  custom: {
    50: '#af69a3',
    500: '#8a247e',
    950: '#000000',
  },
}
SCSS
$custom: #8a247e;
$custom-light: #af69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a247e",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 307.059,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45637,
    "c": 0.16979,
    "h": 333.2
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#8A247E
secondary
#53B75F
accent
#E25846
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A247E

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

Preview Lab → · Contrast checker → · Palette generator →

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