#8A237C#8A237C

#8A237C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.169 H 334.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8A237C
RGBrgb(138, 35, 124)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 54%)
CMYKcmyk(0%, 74.6%, 10.1%, 45.9%)
CIE-LABlab(34.11, 52.52, -27.00)
CIE-LCHlch(34.11, 59.05, 332.79°)
OKLaboklab(45.44% 0.1525 -0.0739)
OKLCHoklch(45.44% 0.169 334.1)
XYZxyz(14.7205, 8.0618, 19.8457)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237C #238A31
analogous
#65238A #8A237C #8A2349
triadic
#8A237C #7C8A23 #237C8A
tetradic
#8A237C #8A6523 #238A31 #23498A
square
#8A237C #8A6523 #238A31 #23498A
split-complementary
#8A237C #498A23 #238A65
monochromatic
#280A24 #591750 #8A237C #BB2FA8 #D454C2

Accessibility & contrast

On white

8.04
#8A237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A237C
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237C#FFFFFF#000000##FFFFFF
##8A237C1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477E
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#912C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a237c;
/* rgb */ color: rgb(138, 35, 124);
/* oklch */ color: oklch(45.4% 0.169 334.1);
Tailwind
colors: {
  custom: {
    50: '#af69a2',
    500: '#8a237c',
    950: '#000000',
  },
}
SCSS
$custom: #8a237c;
$custom-light: #af69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237c",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 308.155,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45438,
    "c": 0.16944,
    "h": 334.1
  },
  "luminance": 0.08061
}

Semantic roles & 50–950 ramp

primary
#8A237C
secondary
#51B75F
accent
#E35B45
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A237C

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

Preview Lab → · Contrast checker → · Palette generator →

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