#8A2297#8A2297

#8A2297 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.192 H 323.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A2297
RGBrgb(138, 34, 151)
HSLhsl(293, 63%, 36%)
HSVhsv(293, 77%, 59%)
CMYKcmyk(8.6%, 77.5%, 0%, 40.8%)
CIE-LABlab(35.56, 57.45, -41.37)
CIE-LCHlch(35.56, 70.80, 324.24°)
OKLaboklab(46.98% 0.1533 -0.1156)
OKLCHoklch(46.98% 0.192 323)
XYZxyz(16.6386, 8.7827, 30.0910)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2297 #2F9722
analogous
#502297 #8A2297 #97226A
triadic
#8A2297 #978A22 #22978A
tetradic
#8A2297 #975022 #2F9722 #226A97
square
#8A2297 #975022 #2F9722 #226A97
split-complementary
#8A2297 #6A9722 #229750
monochromatic
#2F0C33 #5C1765 #8A2297 #B82DC9 #CC5ADA

Accessibility & contrast

On white

7.62
#8A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2297
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2297#FFFFFF#000000##FFFFFF
##8A22971.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#365894
Tritanopia (blue-blind)
#8C395C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2297;
/* rgb */ color: rgb(138, 34, 151);
/* oklch */ color: oklch(47.0% 0.192 323.0);
Tailwind
colors: {
  custom: {
    50: '#b06ab6',
    500: '#8a2297',
    950: '#000000',
  },
}
SCSS
$custom: #8a2297;
$custom-light: #b06ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2297",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 293.333,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46981,
    "c": 0.19202,
    "h": 323
  },
  "luminance": 0.08782
}

Semantic roles & 50–950 ramp

primary
#8A2297
secondary
#62BE57
accent
#E64254
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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