#8A257F#8A257F

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

Color values

HEX#8A257F
RGBrgb(138, 37, 127)
HSLhsl(307, 58%, 34%)
HSVhsv(307, 73%, 54%)
CMYKcmyk(0%, 73.2%, 8%, 45.9%)
CIE-LABlab(34.52, 52.29, -28.23)
CIE-LCHlch(34.52, 59.43, 331.63°)
OKLaboklab(45.78% 0.1506 -0.0775)
OKLCHoklch(45.78% 0.169 332.8)
XYZxyz(14.9736, 8.2599, 20.8803)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A257F #258A30
analogous
#63258A #8A257F #8A254D
triadic
#8A257F #7F8A25 #257F8A
tetradic
#8A257F #8A6325 #258A30 #254D8A
square
#8A257F #8A6325 #258A30 #254D8A
split-complementary
#8A257F #4D8A25 #258A63
monochromatic
#290B26 #5A1853 #8A257F #BA32AB #D257C5

Accessibility & contrast

On white

7.92
#8A257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A257F
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A257F#FFFFFF#000000##FFFFFF
##8A257F1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a257f;
/* rgb */ color: rgb(138, 37, 127);
/* oklch */ color: oklch(45.8% 0.169 332.8);
Tailwind
colors: {
  custom: {
    50: '#af6aa4',
    500: '#8a257f',
    950: '#000000',
  },
}
SCSS
$custom: #8a257f;
$custom-light: #af6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a257f",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 306.535,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.16938,
    "h": 332.8
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#8A257F
secondary
#54B75F
accent
#E15847
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A257F

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

Preview Lab → · Contrast checker → · Palette generator →

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