#8A247B#8A247B

#8A247B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.168 H 334.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8A247B
RGBrgb(138, 36, 123)
HSLhsl(309, 59%, 34%)
HSVhsv(309, 74%, 54%)
CMYKcmyk(0%, 73.9%, 10.9%, 45.9%)
CIE-LABlab(34.18, 52.01, -26.26)
CIE-LCHlch(34.18, 58.26, 333.21°)
OKLaboklab(45.47% 0.1514 -0.0718)
OKLCHoklch(45.47% 0.168 334.6)
XYZxyz(14.6874, 8.0964, 19.5243)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A247B #248A33
analogous
#66248A #8A247B #8A2448
triadic
#8A247B #7B8A24 #247B8A
tetradic
#8A247B #8A6624 #248A33 #24488A
square
#8A247B #8A6624 #248A33 #24488A
split-complementary
#8A247B #488A24 #248A66
monochromatic
#290B24 #591750 #8A247B #BB31A6 #D356C0

Accessibility & contrast

On white

8.02
#8A247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A247B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A247B#FFFFFF#000000##FFFFFF
##8A247B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#912D4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a247b;
/* rgb */ color: rgb(138, 36, 123);
/* oklch */ color: oklch(45.5% 0.168 334.6);
Tailwind
colors: {
  custom: {
    50: '#af69a1',
    500: '#8a247b',
    950: '#000000',
  },
}
SCSS
$custom: #8a247b;
$custom-light: #af69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a247b",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 308.824,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45473,
    "c": 0.16751,
    "h": 334.6
  },
  "luminance": 0.08095
}

Semantic roles & 50–950 ramp

primary
#8A247B
secondary
#53B762
accent
#E25D46
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A247B

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

Preview Lab → · Contrast checker → · Palette generator →

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