#8A238F#8A238F

#8A238F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.184 H 326.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8A238F
RGBrgb(138, 35, 143)
HSLhsl(297, 61%, 35%)
HSVhsv(297, 76%, 56%)
CMYKcmyk(3.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(35.18, 55.70, -37.09)
CIE-LCHlch(35.18, 66.91, 326.34°)
OKLaboklab(46.55% 0.1529 -0.1031)
OKLCHoklch(46.55% 0.184 326)
XYZxyz(16.0399, 8.5896, 26.7944)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A238F #288F23
analogous
#54238F #8A238F #8F235E
triadic
#8A238F #8F8A23 #238F8A
tetradic
#8A238F #8F5423 #288F23 #235E8F
square
#8A238F #8F5423 #288F23 #235E8F
split-complementary
#8A238F #5E8F23 #238F54
monochromatic
#2B0B2D #5B175E #8A238F #B92FC0 #D057D6

Accessibility & contrast

On white

7.73
#8A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A238F
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A238F#FFFFFF#000000##FFFFFF
##8A238F1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B92
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#8E3657
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a238f;
/* rgb */ color: rgb(138, 35, 143);
/* oklch */ color: oklch(46.6% 0.184 326.0);
Tailwind
colors: {
  custom: {
    50: '#b06ab0',
    500: '#8a238f',
    950: '#000000',
  },
}
SCSS
$custom: #8a238f;
$custom-light: #b06ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a238f",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 297.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46552,
    "c": 0.18441,
    "h": 326
  },
  "luminance": 0.08589
}

Semantic roles & 50–950 ramp

primary
#8A238F
secondary
#59BA54
accent
#E4444B
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A238F

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

Preview Lab → · Contrast checker → · Palette generator →

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