#8A237F#8A237F

#8A237F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.172 H 332.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8A237F
RGBrgb(138, 35, 127)
HSLhsl(306, 60%, 34%)
HSVhsv(306, 75%, 54%)
CMYKcmyk(0%, 74.6%, 8%, 45.9%)
CIE-LABlab(34.27, 53.00, -28.62)
CIE-LCHlch(34.27, 60.23, 331.63°)
OKLaboklab(45.61% 0.1527 -0.0786)
OKLCHoklch(45.61% 0.172 332.8)
XYZxyz(14.9131, 8.1389, 20.8601)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A237F #238A2E
analogous
#62238A #8A237F #8A234C
triadic
#8A237F #7F8A23 #237F8A
tetradic
#8A237F #8A6223 #238A2E #234C8A
square
#8A237F #8A6223 #238A2E #234C8A
split-complementary
#8A237F #4C8A23 #238A62
monochromatic
#280A25 #591752 #8A237F #BB2FAC #D454C6

Accessibility & contrast

On white

7.99
#8A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A237F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A237F#FFFFFF#000000##FFFFFF
##8A237F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4782
Deuteranopia (green-blind)
#45567D
Tritanopia (blue-blind)
#902E4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a237f;
/* rgb */ color: rgb(138, 35, 127);
/* oklch */ color: oklch(45.6% 0.172 332.8);
Tailwind
colors: {
  custom: {
    50: '#af69a4',
    500: '#8a237f',
    950: '#000000',
  },
}
SCSS
$custom: #8a237f;
$custom-light: #af69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a237f",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 306.408,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.17172,
    "h": 332.8
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#8A237F
secondary
#51B75C
accent
#E35645
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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