#8A2F8C#8A2F8C

#8A2F8C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.167 H 326.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A2F8C
RGBrgb(138, 47, 140)
HSLhsl(299, 50%, 37%)
HSVhsv(299, 66%, 55%)
CMYKcmyk(1.4%, 66.4%, 0%, 45.1%)
CIE-LABlab(36.61, 50.62, -32.97)
CIE-LCHlch(36.61, 60.41, 326.92°)
OKLaboklab(47.52% 0.1402 -0.0912)
OKLCHoklch(47.52% 0.167 326.9)
XYZxyz(16.2311, 9.3308, 25.7520)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8C #318C2F
analogous
#5C2F8C #8A2F8C #8C2F60
triadic
#8A2F8C #8C8A2F #2F8C8A
tetradic
#8A2F8C #8C5C2F #318C2F #2F608C
square
#8A2F8C #8C5C2F #318C2F #2F608C
split-complementary
#8A2F8C #608C2F #2F8C5C
monochromatic
#301030 #5D205E #8A2F8C #B73EBA #CA69CD

Accessibility & contrast

On white

7.33
#8A2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F8C
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8C#FFFFFF#000000##FFFFFF
##8A2F8C1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#445A8A
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f8c;
/* rgb */ color: rgb(138, 47, 140);
/* oklch */ color: oklch(47.5% 0.167 326.9);
Tailwind
colors: {
  custom: {
    50: '#af6fae',
    500: '#8a2f8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8c;
$custom-light: #af6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8c",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 140
  },
  "hsl": {
    "h": 298.71,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47524,
    "c": 0.16724,
    "h": 326.9
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

primary
#8A2F8C
secondary
#65B463
accent
#D94F52
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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