#8A237A#8A237A

#8A237A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.168 H 335.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#8A237A
RGBrgb(138, 35, 122)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 54%)
CMYKcmyk(0%, 74.6%, 11.6%, 45.9%)
CIE-LABlab(34.01, 52.20, -25.91)
CIE-LCHlch(34.01, 58.27, 333.61°)
OKLaboklab(45.33% 0.1523 -0.0708)
OKLCHoklch(45.33% 0.168 335.1)
XYZxyz(14.5953, 8.0118, 19.1863)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237A #238A33
analogous
#67238A #8A237A #8A2347
triadic
#8A237A #7A8A23 #237A8A
tetradic
#8A237A #8A6723 #238A33 #23478A
square
#8A237A #8A6723 #238A33 #23478A
split-complementary
#8A237A #478A23 #238A67
monochromatic
#280A24 #59174F #8A237A #BB2FA5 #D454C0

Accessibility & contrast

On white

8.07
#8A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A237A
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237A#FFFFFF#000000##FFFFFF
##8A237A1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#475578
Tritanopia (blue-blind)
#912B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a237a;
/* rgb */ color: rgb(138, 35, 122);
/* oklch */ color: oklch(45.3% 0.168 335.1);
Tailwind
colors: {
  custom: {
    50: '#af69a1',
    500: '#8a237a',
    950: '#000000',
  },
}
SCSS
$custom: #8a237a;
$custom-light: #af69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237a",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 309.32,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4533,
    "c": 0.16794,
    "h": 335.1
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#8A237A
secondary
#51B761
accent
#E35E45
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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