#8A257E#8A257E

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

Color values

HEX#8A257E
RGBrgb(138, 37, 126)
HSLhsl(307, 58%, 34%)
HSVhsv(307, 73%, 54%)
CMYKcmyk(0%, 73.2%, 8.7%, 45.9%)
CIE-LABlab(34.47, 52.13, -27.69)
CIE-LCHlch(34.47, 59.03, 332.02°)
OKLaboklab(45.73% 0.1506 -0.0759)
OKLCHoklch(45.73% 0.169 333.2)
XYZxyz(14.9088, 8.2340, 20.5387)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A257E #258A31
analogous
#64258A #8A257E #8A254C
triadic
#8A257E #7E8A25 #257E8A
tetradic
#8A257E #8A6425 #258A31 #254C8A
square
#8A257E #8A6425 #258A31 #254C8A
split-complementary
#8A257E #4C8A25 #258A64
monochromatic
#290B26 #5A1852 #8A257E #BA32AA #D257C3

Accessibility & contrast

On white

7.93
#8A257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A257E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A257E#FFFFFF#000000##FFFFFF
##8A257E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a257e;
/* rgb */ color: rgb(138, 37, 126);
/* oklch */ color: oklch(45.7% 0.169 333.2);
Tailwind
colors: {
  custom: {
    50: '#af6aa3',
    500: '#8a257e',
    950: '#000000',
  },
}
SCSS
$custom: #8a257e;
$custom-light: #af6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a257e",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 307.129,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45728,
    "c": 0.16861,
    "h": 333.2
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#8A257E
secondary
#54B760
accent
#E15947
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A257E

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

Preview Lab → · Contrast checker → · Palette generator →

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