#8A237D#8A237D

#8A237D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.170 H 333.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8A237D
RGBrgb(138, 35, 125)
HSLhsl(308, 60%, 34%)
HSVhsv(308, 75%, 54%)
CMYKcmyk(0%, 74.6%, 9.4%, 45.9%)
CIE-LABlab(34.16, 52.67, -27.54)
CIE-LCHlch(34.16, 59.44, 332.40°)
OKLaboklab(45.49% 0.1526 -0.0755)
OKLCHoklch(45.49% 0.17 333.7)
XYZxyz(14.7840, 8.0873, 20.1804)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237D #238A30
analogous
#64238A #8A237D #8A234A
triadic
#8A237D #7D8A23 #237D8A
tetradic
#8A237D #8A6423 #238A30 #234A8A
square
#8A237D #8A6423 #238A30 #234A8A
split-complementary
#8A237D #4A8A23 #238A64
monochromatic
#280A25 #591751 #8A237D #BB2FA9 #D454C3

Accessibility & contrast

On white

8.02
#8A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A237D
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237D#FFFFFF#000000##FFFFFF
##8A237D1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#912D4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a237d;
/* rgb */ color: rgb(138, 35, 125);
/* oklch */ color: oklch(45.5% 0.170 333.7);
Tailwind
colors: {
  custom: {
    50: '#af69a3',
    500: '#8a237d',
    950: '#000000',
  },
}
SCSS
$custom: #8a237d;
$custom-light: #af69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237d",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 307.573,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45493,
    "c": 0.1702,
    "h": 333.7
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#8A237D
secondary
#51B75E
accent
#E35945
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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