#8A257C#8A257C

#8A257C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.167 H 334.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A257C
RGBrgb(138, 37, 124)
HSLhsl(308, 58%, 34%)
HSVhsv(308, 73%, 54%)
CMYKcmyk(0%, 73.2%, 10.1%, 45.9%)
CIE-LABlab(34.36, 51.81, -26.61)
CIE-LCHlch(34.36, 58.24, 332.82°)
OKLaboklab(45.62% 0.1504 -0.0728)
OKLCHoklch(45.62% 0.167 334.2)
XYZxyz(14.7810, 8.1829, 19.8659)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A257C #258A33
analogous
#66258A #8A257C #8A254A
triadic
#8A257C #7C8A25 #257C8A
tetradic
#8A257C #8A6625 #258A33 #254A8A
square
#8A257C #8A6625 #258A33 #254A8A
split-complementary
#8A257C #4A8A25 #258A66
monochromatic
#290B25 #5A1851 #8A257C #BA32A7 #D257C1

Accessibility & contrast

On white

7.97
#8A257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A257C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A257C#FFFFFF#000000##FFFFFF
##8A257C1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#912E4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a257c;
/* rgb */ color: rgb(138, 37, 124);
/* oklch */ color: oklch(45.6% 0.167 334.2);
Tailwind
colors: {
  custom: {
    50: '#af6aa2',
    500: '#8a257c',
    950: '#000000',
  },
}
SCSS
$custom: #8a257c;
$custom-light: #af6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a257c",
  "rgb": {
    "r": 138,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 308.317,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45618,
    "c": 0.16708,
    "h": 334.2
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#8A257C
secondary
#54B762
accent
#E15C47
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A257C

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

Preview Lab → · Contrast checker → · Palette generator →

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