#8A267B#8A267B

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

Color values

HEX#8A267B
RGBrgb(138, 38, 123)
HSLhsl(309, 57%, 35%)
HSVhsv(309, 72%, 54%)
CMYKcmyk(0%, 72.5%, 10.9%, 45.9%)
CIE-LABlab(34.44, 51.28, -25.86)
CIE-LCHlch(34.44, 57.43, 333.24°)
OKLaboklab(45.66% 0.1492 -0.0707)
OKLCHoklch(45.66% 0.165 334.7)
XYZxyz(14.7496, 8.2208, 19.5450)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267B #268A35
analogous
#67268A #8A267B #8A2649
triadic
#8A267B #7B8A26 #267B8A
tetradic
#8A267B #8A6726 #268A35 #26498A
square
#8A267B #8A6726 #268A35 #26498A
split-complementary
#8A267B #498A26 #268A67
monochromatic
#2A0C25 #5A1950 #8A267B #BA33A6 #D159BF

Accessibility & contrast

On white

7.94
#8A267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A267B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267B#FFFFFF#000000##FFFFFF
##8A267B1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487D
Deuteranopia (green-blind)
#485679
Tritanopia (blue-blind)
#912E4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267b;
/* rgb */ color: rgb(138, 38, 123);
/* oklch */ color: oklch(45.7% 0.165 334.7);
Tailwind
colors: {
  custom: {
    50: '#af6aa1',
    500: '#8a267b',
    950: '#000000',
  },
}
SCSS
$custom: #8a267b;
$custom-light: #af6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267b",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 309,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.1651,
    "h": 334.7
  },
  "luminance": 0.0822
}

Semantic roles & 50–950 ramp

primary
#8A267B
secondary
#56B664
accent
#E05F48
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A267B

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

Preview Lab → · Contrast checker → · Palette generator →

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