#8A237B#8A237B

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

Color values

HEX#8A237B
RGBrgb(138, 35, 123)
HSLhsl(309, 60%, 34%)
HSVhsv(309, 75%, 54%)
CMYKcmyk(0%, 74.6%, 10.9%, 45.9%)
CIE-LABlab(34.06, 52.36, -26.45)
CIE-LCHlch(34.06, 58.66, 333.20°)
OKLaboklab(45.38% 0.1524 -0.0723)
OKLCHoklch(45.38% 0.169 334.6)
XYZxyz(14.6576, 8.0367, 19.5143)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237B #238A32
analogous
#66238A #8A237B #8A2348
triadic
#8A237B #7B8A23 #237B8A
tetradic
#8A237B #8A6623 #238A32 #23488A
square
#8A237B #8A6623 #238A32 #23488A
split-complementary
#8A237B #488A23 #238A66
monochromatic
#280A24 #59174F #8A237B #BB2FA7 #D454C1

Accessibility & contrast

On white

8.06
#8A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A237B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237B#FFFFFF#000000##FFFFFF
##8A237B1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467D
Deuteranopia (green-blind)
#475579
Tritanopia (blue-blind)
#912C4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a237b;
/* rgb */ color: rgb(138, 35, 123);
/* oklch */ color: oklch(45.4% 0.169 334.6);
Tailwind
colors: {
  custom: {
    50: '#af69a1',
    500: '#8a237b',
    950: '#000000',
  },
}
SCSS
$custom: #8a237b;
$custom-light: #af69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237b",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 308.738,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45384,
    "c": 0.16869,
    "h": 334.6
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#8A237B
secondary
#51B760
accent
#E35C45
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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