#8A238D#8A238D

#8A238D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.183 H 326.8°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8A238D
RGBrgb(138, 35, 141)
HSLhsl(298, 60%, 35%)
HSVhsv(298, 75%, 55%)
CMYKcmyk(2.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(35.06, 55.35, -36.05)
CIE-LCHlch(35.06, 66.05, 326.92°)
OKLaboklab(46.43% 0.1529 -0.1001)
OKLCHoklch(46.43% 0.183 326.8)
XYZxyz(15.8897, 8.5295, 26.0036)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A238D #268D23
analogous
#55238D #8A238D #8D235B
triadic
#8A238D #8D8A23 #238D8A
tetradic
#8A238D #8D5523 #268D23 #235B8D
square
#8A238D #8D5523 #268D23 #235B8D
split-complementary
#8A238D #5B8D23 #238D55
monochromatic
#2A0B2B #5A175C #8A238D #BA2FBE #D155D5

Accessibility & contrast

On white

7.76
#8A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A238D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A238D#FFFFFF#000000##FFFFFF
##8A238D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A90
Deuteranopia (green-blind)
#3D578A
Tritanopia (blue-blind)
#8E3556
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a238d;
/* rgb */ color: rgb(138, 35, 141);
/* oklch */ color: oklch(46.4% 0.183 326.8);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8a238d',
    950: '#000000',
  },
}
SCSS
$custom: #8a238d;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a238d",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 298.302,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46428,
    "c": 0.18278,
    "h": 326.8
  },
  "luminance": 0.08528
}

Semantic roles & 50–950 ramp

primary
#8A238D
secondary
#56B953
accent
#E34449
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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