#8A238C#8A238C

#8A238C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.182 H 327.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8A238C
RGBrgb(138, 35, 140)
HSLhsl(299, 60%, 34%)
HSVhsv(299, 75%, 55%)
CMYKcmyk(1.4%, 75%, 0%, 45.1%)
CIE-LABlab(35.00, 55.17, -35.53)
CIE-LCHlch(35.00, 65.62, 327.22°)
OKLaboklab(46.37% 0.153 -0.0986)
OKLCHoklch(46.37% 0.182 327.2)
XYZxyz(15.8156, 8.4999, 25.6135)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A238C #258C23
analogous
#56238C #8A238C #8C235A
triadic
#8A238C #8C8A23 #238C8A
tetradic
#8A238C #8C5623 #258C23 #235A8C
square
#8A238C #8C5623 #258C23 #235A8C
split-complementary
#8A238C #5A8C23 #238C56
monochromatic
#290B2A #5A175B #8A238C #BA2FBD #D255D4

Accessibility & contrast

On white

7.78
#8A238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A238C
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A238C#FFFFFF#000000##FFFFFF
##8A238C1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A8F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#8E3456
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a238c;
/* rgb */ color: rgb(138, 35, 140);
/* oklch */ color: oklch(46.4% 0.182 327.2);
Tailwind
colors: {
  custom: {
    50: '#b06aae',
    500: '#8a238c',
    950: '#000000',
  },
}
SCSS
$custom: #8a238c;
$custom-light: #b06aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a238c",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 298.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46366,
    "c": 0.18197,
    "h": 327.2
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#8A238C
secondary
#54B852
accent
#E34548
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A238C

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

Preview Lab → · Contrast checker → · Palette generator →

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