#8A2F8B#8A2F8B

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

Color values

HEX#8A2F8B
RGBrgb(138, 47, 139)
HSLhsl(299, 49%, 36%)
HSVhsv(299, 66%, 55%)
CMYKcmyk(0.7%, 66.2%, 0%, 45.5%)
CIE-LABlab(36.56, 50.44, -32.44)
CIE-LCHlch(36.56, 59.97, 327.25°)
OKLaboklab(47.47% 0.1401 -0.0897)
OKLCHoklch(47.47% 0.166 327.4)
XYZxyz(16.1577, 9.3015, 25.3654)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8B #308B2F
analogous
#5C2F8B #8A2F8B #8B2F5E
triadic
#8A2F8B #8B8A2F #2F8B8A
tetradic
#8A2F8B #8B5C2F #308B2F #2F5E8B
square
#8A2F8B #8B5C2F #308B2F #2F5E8B
split-complementary
#8A2F8B #5E8B2F #2F8B5C
monochromatic
#2F1030 #5D205D #8A2F8B #B73EB9 #CB68CC

Accessibility & contrast

On white

7.34
#8A2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F8B
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8B#FFFFFF#000000##FFFFFF
##8A2F8B1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8E
Deuteranopia (green-blind)
#455A89
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f8b;
/* rgb */ color: rgb(138, 47, 139);
/* oklch */ color: oklch(47.5% 0.166 327.4);
Tailwind
colors: {
  custom: {
    50: '#af6fad',
    500: '#8a2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8b;
$custom-light: #af6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8b",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 299.348,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47466,
    "c": 0.16637,
    "h": 327.4
  },
  "luminance": 0.093
}

Semantic roles & 50–950 ramp

primary
#8A2F8B
secondary
#64B363
accent
#D94F50
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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