#8B238F#8B238F

#8B238F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.185 H 326.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8B238F
RGBrgb(139, 35, 143)
HSLhsl(298, 61%, 35%)
HSVhsv(298, 76%, 56%)
CMYKcmyk(2.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(35.35, 55.91, -36.81)
CIE-LCHlch(35.35, 66.94, 326.65°)
OKLaboklab(46.71% 0.154 -0.1023)
OKLCHoklch(46.71% 0.185 326.4)
XYZxyz(16.2061, 8.6753, 26.8022)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238F #278F23
analogous
#55238F #8B238F #8F235D
triadic
#8B238F #8F8B23 #238F8B
tetradic
#8B238F #8F5523 #278F23 #235D8F
square
#8B238F #8F5523 #278F23 #235D8F
split-complementary
#8B238F #5D8F23 #238F55
monochromatic
#2B0B2D #5B175E #8B238F #BB2FC0 #D157D6

Accessibility & contrast

On white

7.68
#8B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B238F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238F#FFFFFF#000000##FFFFFF
##8B238F1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#3D588C
Tritanopia (blue-blind)
#8F3557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b238f;
/* rgb */ color: rgb(139, 35, 143);
/* oklch */ color: oklch(46.7% 0.185 326.4);
Tailwind
colors: {
  custom: {
    50: '#b06ab0',
    500: '#8b238f',
    950: '#000000',
  },
}
SCSS
$custom: #8b238f;
$custom-light: #b06ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238f",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 297.778,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46706,
    "c": 0.18488,
    "h": 326.4
  },
  "luminance": 0.08674
}

Semantic roles & 50–950 ramp

primary
#8B238F
secondary
#58BA54
accent
#E4444A
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B238F

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

Preview Lab → · Contrast checker → · Palette generator →

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