#8A268E#8A268E

#8A268E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.180 H 326.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A268E
RGBrgb(138, 38, 142)
HSLhsl(298, 58%, 35%)
HSVhsv(298, 73%, 56%)
CMYKcmyk(2.8%, 73.2%, 0%, 44.3%)
CIE-LABlab(35.49, 54.48, -35.99)
CIE-LCHlch(35.49, 65.29, 326.55°)
OKLaboklab(46.75% 0.15 -0.0999)
OKLCHoklch(46.75% 0.18 326.3)
XYZxyz(16.0565, 8.7436, 26.4279)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A268E #2A8E26
analogous
#56268E #8A268E #8E265E
triadic
#8A268E #8E8A26 #268E8A
tetradic
#8A268E #8E5626 #2A8E26 #265E8E
square
#8A268E #8E5626 #2A8E26 #265E8E
split-complementary
#8A268E #5E8E26 #268E56
monochromatic
#2C0C2D #5B195E #8A268E #B933BE #CF5BD3

Accessibility & contrast

On white

7.64
#8A268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A268E
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A268E#FFFFFF#000000##FFFFFF
##8A268E1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B91
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#8E3758
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a268e;
/* rgb */ color: rgb(138, 38, 142);
/* oklch */ color: oklch(46.8% 0.180 326.3);
Tailwind
colors: {
  custom: {
    50: '#af6baf',
    500: '#8a268e',
    950: '#000000',
  },
}
SCSS
$custom: #8a268e;
$custom-light: #af6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a268e",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 297.692,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4675,
    "c": 0.18025,
    "h": 326.3
  },
  "luminance": 0.08742
}

Semantic roles & 50–950 ramp

primary
#8A268E
secondary
#5BB858
accent
#E1474D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A268E

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

Preview Lab → · Contrast checker → · Palette generator →

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