#8A267E#8A267E

#8A267E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.167 H 333.2°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8A267E
RGBrgb(138, 38, 126)
HSLhsl(307, 57%, 35%)
HSVhsv(307, 72%, 54%)
CMYKcmyk(0%, 72.5%, 8.7%, 45.9%)
CIE-LABlab(34.59, 51.76, -27.49)
CIE-LCHlch(34.59, 58.61, 332.03°)
OKLaboklab(45.82% 0.1495 -0.0753)
OKLCHoklch(45.82% 0.167 333.2)
XYZxyz(14.9403, 8.2971, 20.5492)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A267E #268A32
analogous
#64268A #8A267E #8A264C
triadic
#8A267E #7E8A26 #267E8A
tetradic
#8A267E #8A6426 #268A32 #264C8A
square
#8A267E #8A6426 #268A32 #264C8A
split-complementary
#8A267E #4C8A26 #268A64
monochromatic
#2A0C26 #5A1952 #8A267E #BA33AA #D159C3

Accessibility & contrast

On white

7.90
#8A267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A267E
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A267E#FFFFFF#000000##FFFFFF
##8A267E1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#47567C
Tritanopia (blue-blind)
#902F4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a267e;
/* rgb */ color: rgb(138, 38, 126);
/* oklch */ color: oklch(45.8% 0.167 333.2);
Tailwind
colors: {
  custom: {
    50: '#af6aa3',
    500: '#8a267e',
    950: '#000000',
  },
}
SCSS
$custom: #8a267e;
$custom-light: #af6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a267e",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 307.2,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.1674,
    "h": 333.2
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#8A267E
secondary
#56B661
accent
#E05A48
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A267E

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

Preview Lab → · Contrast checker → · Palette generator →

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