#8B238E#8B238E

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

Color values

HEX#8B238E
RGBrgb(139, 35, 142)
HSLhsl(298, 60%, 35%)
HSVhsv(298, 75%, 56%)
CMYKcmyk(2.1%, 75.4%, 0%, 44.3%)
CIE-LABlab(35.29, 55.74, -36.29)
CIE-LCHlch(35.29, 66.51, 326.94°)
OKLaboklab(46.64% 0.154 -0.1008)
OKLCHoklch(46.64% 0.184 326.8)
XYZxyz(16.1307, 8.6452, 26.4050)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B238E #268E23
analogous
#56238E #8B238E #8E235B
triadic
#8B238E #8E8B23 #238E8B
tetradic
#8B238E #8E5623 #268E23 #235B8E
square
#8B238E #8E5623 #268E23 #235B8E
split-complementary
#8B238E #5B8E23 #238E56
monochromatic
#2B0B2C #5B175D #8B238E #BB2FBF #D256D5

Accessibility & contrast

On white

7.70
#8B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B238E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B238E#FFFFFF#000000##FFFFFF
##8B238E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054B91
Deuteranopia (green-blind)
#3E578B
Tritanopia (blue-blind)
#8F3557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b238e;
/* rgb */ color: rgb(139, 35, 142);
/* oklch */ color: oklch(46.6% 0.184 326.8);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8b238e',
    950: '#000000',
  },
}
SCSS
$custom: #8b238e;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b238e",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 298.318,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.18407,
    "h": 326.8
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#8B238E
secondary
#56B953
accent
#E44449
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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