#8C267D#8C267D

#8C267D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.168 H 334.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8C267D
RGBrgb(140, 38, 125)
HSLhsl(309, 57%, 35%)
HSVhsv(309, 73%, 55%)
CMYKcmyk(0%, 72.9%, 10.7%, 45.1%)
CIE-LABlab(34.89, 52.10, -26.38)
CIE-LCHlch(34.89, 58.40, 333.15°)
OKLaboklab(46.08% 0.1515 -0.0721)
OKLCHoklch(46.08% 0.168 334.6)
XYZxyz(15.2102, 8.4437, 20.2268)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C267D #268C35
analogous
#68268C #8C267D #8C264A
triadic
#8C267D #7D8C26 #267D8C
tetradic
#8C267D #8C6826 #268C35 #264A8C
square
#8C267D #8C6826 #268C35 #264A8C
split-complementary
#8C267D #4A8C26 #268C68
monochromatic
#2C0C27 #5C1952 #8C267D #BC33A8 #D25AC1

Accessibility & contrast

On white

7.81
#8C267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8C267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C267D
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C267D#FFFFFF#000000##FFFFFF
##8C267D1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487F
Deuteranopia (green-blind)
#49577B
Tritanopia (blue-blind)
#932E4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8c267d;
/* rgb */ color: rgb(140, 38, 125);
/* oklch */ color: oklch(46.1% 0.168 334.6);
Tailwind
colors: {
  custom: {
    50: '#b16aa3',
    500: '#8c267d',
    950: '#000000',
  },
}
SCSS
$custom: #8c267d;
$custom-light: #b16aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c267d",
  "rgb": {
    "r": 140,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 308.824,
    "s": 57.303,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46084,
    "c": 0.16782,
    "h": 334.6
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#8C267D
secondary
#57B765
accent
#E15E47
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C267D

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

Preview Lab → · Contrast checker → · Palette generator →

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