#8A267C#8A267C

#8A267C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.166 H 334.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8A267C
RGBrgb(138, 38, 124)
HSLhsl(308, 57%, 35%)
HSVhsv(308, 72%, 54%)
CMYKcmyk(0%, 72.5%, 10.1%, 45.9%)
CIE-LABlab(34.49, 51.44, -26.40)
CIE-LCHlch(34.49, 57.82, 332.83°)
OKLaboklab(45.71% 0.1493 -0.0722)
OKLCHoklch(45.71% 0.166 334.2)
XYZxyz(14.8126, 8.2460, 19.8764)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267C #268A34
analogous
#66268A #8A267C #8A264A
triadic
#8A267C #7C8A26 #267C8A
tetradic
#8A267C #8A6626 #268A34 #264A8A
square
#8A267C #8A6626 #268A34 #264A8A
split-complementary
#8A267C #4A8A26 #268A66
monochromatic
#2A0C26 #5A1951 #8A267C #BA33A7 #D159C0

Accessibility & contrast

On white

7.93
#8A267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A267C
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267C#FFFFFF#000000##FFFFFF
##8A267C1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#48567A
Tritanopia (blue-blind)
#912E4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267c;
/* rgb */ color: rgb(138, 38, 124);
/* oklch */ color: oklch(45.7% 0.166 334.2);
Tailwind
colors: {
  custom: {
    50: '#af6aa2',
    500: '#8a267c',
    950: '#000000',
  },
}
SCSS
$custom: #8a267c;
$custom-light: #af6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267c",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 308.4,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45712,
    "c": 0.16586,
    "h": 334.2
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#8A267C
secondary
#56B663
accent
#E05D48
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A267C

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

Preview Lab → · Contrast checker → · Palette generator →

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