#8A237E#8A237E

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

Color values

HEX#8A237E
RGBrgb(138, 35, 126)
HSLhsl(307, 60%, 34%)
HSVhsv(307, 75%, 54%)
CMYKcmyk(0%, 74.6%, 8.7%, 45.9%)
CIE-LABlab(34.22, 52.83, -28.08)
CIE-LCHlch(34.22, 59.83, 332.01°)
OKLaboklab(45.55% 0.1526 -0.077)
OKLCHoklch(45.55% 0.171 333.2)
XYZxyz(14.8482, 8.1129, 20.5186)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237E #238A2F
analogous
#63238A #8A237E #8A234B
triadic
#8A237E #7E8A23 #237E8A
tetradic
#8A237E #8A6323 #238A2F #234B8A
square
#8A237E #8A6323 #238A2F #234B8A
split-complementary
#8A237E #4B8A23 #238A63
monochromatic
#280A25 #591751 #8A237E #BB2FAB #D454C5

Accessibility & contrast

On white

8.01
#8A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A237E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237E#FFFFFF#000000##FFFFFF
##8A237E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#902D4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a237e;
/* rgb */ color: rgb(138, 35, 126);
/* oklch */ color: oklch(45.5% 0.171 333.2);
Tailwind
colors: {
  custom: {
    50: '#af69a4',
    500: '#8a237e',
    950: '#000000',
  },
}
SCSS
$custom: #8a237e;
$custom-light: #af69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237e",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 306.99,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45549,
    "c": 0.17096,
    "h": 333.2
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

primary
#8A237E
secondary
#51B75D
accent
#E35745
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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