#8F229D#8F229D

#8F229D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.199 H 322.8°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8F229D
RGBrgb(143, 34, 157)
HSLhsl(293, 64%, 37%)
HSVhsv(293, 78%, 62%)
CMYKcmyk(8.9%, 78.3%, 0%, 38.4%)
CIE-LABlab(36.78, 59.56, -43.02)
CIE-LCHlch(36.78, 73.47, 324.16°)
OKLaboklab(48.13% 0.1586 -0.1203)
OKLCHoklch(48.13% 0.199 322.8)
XYZxyz(17.9849, 9.4191, 32.7625)
Luminance0.0942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F229D #309D22
analogous
#52229D #8F229D #9D226D
triadic
#8F229D #9D8F22 #229D8F
tetradic
#8F229D #9D5222 #309D22 #226D9D
square
#8F229D #9D5222 #309D22 #226D9D
split-complementary
#8F229D #6D9D22 #229D52
monochromatic
#330C38 #61176B #8F229D #BD2DCF #CE5DDC

Accessibility & contrast

On white

7.28
#8F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F229D
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F229D#FFFFFF#000000##FFFFFF
##8F229D1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#375B9A
Tritanopia (blue-blind)
#913B5F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f229d;
/* rgb */ color: rgb(143, 34, 157);
/* oklch */ color: oklch(48.1% 0.199 322.8);
Tailwind
colors: {
  custom: {
    50: '#b46bba',
    500: '#8f229d',
    950: '#000000',
  },
}
SCSS
$custom: #8f229d;
$custom-light: #b46bba;
$custom-dark: #000000;
JSON
{
  "hex": "#8f229d",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 293.171,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48129,
    "c": 0.19908,
    "h": 322.8
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#8F229D
secondary
#66C15A
accent
#E74053
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #8F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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