#8A268C#8A268C

#8A268C is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.6% C 0.179 H 327.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A268C
RGBrgb(138, 38, 140)
HSLhsl(299, 57%, 35%)
HSVhsv(299, 73%, 55%)
CMYKcmyk(1.4%, 72.9%, 0%, 45.1%)
CIE-LABlab(35.37, 54.13, -34.94)
CIE-LCHlch(35.37, 64.43, 327.15°)
OKLaboklab(46.63% 0.15 -0.0969)
OKLCHoklch(46.63% 0.179 327.1)
XYZxyz(15.9077, 8.6841, 25.6442)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A268C #288C26
analogous
#57268C #8A268C #8C265B
triadic
#8A268C #8C8A26 #268C8A
tetradic
#8A268C #8C5726 #288C26 #265B8C
square
#8A268C #8C5726 #288C26 #265B8C
split-complementary
#8A268C #5B8C26 #268C57
monochromatic
#2B0C2C #5B195C #8A268C #B933BC #D05AD2

Accessibility & contrast

On white

7.67
#8A268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A268C
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A268C#FFFFFF#000000##FFFFFF
##8A268C1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B8F
Deuteranopia (green-blind)
#3F5889
Tritanopia (blue-blind)
#8E3657
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a268c;
/* rgb */ color: rgb(138, 38, 140);
/* oklch */ color: oklch(46.6% 0.179 327.1);
Tailwind
colors: {
  custom: {
    50: '#af6bae',
    500: '#8a268c',
    950: '#000000',
  },
}
SCSS
$custom: #8a268c;
$custom-light: #af6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a268c",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 298.824,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46628,
    "c": 0.1786,
    "h": 327.1
  },
  "luminance": 0.08683
}

Semantic roles & 50–950 ramp

primary
#8A268C
secondary
#59B757
accent
#E1474A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A268C

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

Preview Lab → · Contrast checker → · Palette generator →

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