#8A267F#8A267F

#8A267F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.168 H 332.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8A267F
RGBrgb(138, 38, 127)
HSLhsl(307, 57%, 35%)
HSVhsv(307, 72%, 54%)
CMYKcmyk(0%, 72.5%, 8%, 45.9%)
CIE-LABlab(34.65, 51.93, -28.03)
CIE-LCHlch(34.65, 59.01, 331.64°)
OKLaboklab(45.88% 0.1496 -0.0769)
OKLCHoklch(45.88% 0.168 332.8)
XYZxyz(15.0052, 8.3230, 20.8908)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267F #268A31
analogous
#63268A #8A267F #8A264D
triadic
#8A267F #7F8A26 #267F8A
tetradic
#8A267F #8A6326 #268A31 #264D8A
square
#8A267F #8A6326 #268A31 #264D8A
split-complementary
#8A267F #4D8A26 #268A63
monochromatic
#2A0C27 #5A1953 #8A267F #BA33AB #D159C4

Accessibility & contrast

On white

7.88
#8A267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A267F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267F#FFFFFF#000000##FFFFFF
##8A267F1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#46577D
Tritanopia (blue-blind)
#90304F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267f;
/* rgb */ color: rgb(138, 38, 127);
/* oklch */ color: oklch(45.9% 0.168 332.8);
Tailwind
colors: {
  custom: {
    50: '#af6aa4',
    500: '#8a267f',
    950: '#000000',
  },
}
SCSS
$custom: #8a267f;
$custom-light: #af6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267f",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 306.6,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45876,
    "c": 0.16817,
    "h": 332.8
  },
  "luminance": 0.08322
}

Semantic roles & 50–950 ramp

primary
#8A267F
secondary
#56B660
accent
#E05848
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A267F

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

Preview Lab → · Contrast checker → · Palette generator →

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