#8A229B#8A229B

#8A229B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.195 H 321.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8A229B
RGBrgb(138, 34, 155)
HSLhsl(292, 64%, 37%)
HSVhsv(292, 78%, 61%)
CMYKcmyk(11%, 78.1%, 0%, 39.2%)
CIE-LABlab(35.82, 58.18, -43.39)
CIE-LCHlch(35.82, 72.58, 323.28°)
OKLaboklab(47.25% 0.1529 -0.1215)
OKLCHoklch(47.25% 0.195 321.5)
XYZxyz(16.9690, 8.9148, 31.8309)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A229B #339B22
analogous
#4D229B #8A229B #9B2270
triadic
#8A229B #9B8A22 #229B8A
tetradic
#8A229B #9B4D22 #339B22 #22709B
square
#8A229B #9B4D22 #339B22 #22709B
split-complementary
#8A229B #709B22 #229B4D
monochromatic
#310C37 #5D1769 #8A229B #B72DCD #C95CDB

Accessibility & contrast

On white

7.55
#8A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A229B
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A229B#FFFFFF#000000##FFFFFF
##8A229B1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#325898
Tritanopia (blue-blind)
#8B3B5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a229b;
/* rgb */ color: rgb(138, 34, 155);
/* oklch */ color: oklch(47.2% 0.195 321.5);
Tailwind
colors: {
  custom: {
    50: '#b06ab9',
    500: '#8a229b',
    950: '#000000',
  },
}
SCSS
$custom: #8a229b;
$custom-light: #b06ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a229b",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 291.57,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47246,
    "c": 0.19535,
    "h": 321.5
  },
  "luminance": 0.08914
}

Semantic roles & 50–950 ramp

primary
#8A229B
secondary
#67C059
accent
#E74158
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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