#8A238B#8A238B

#8A238B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.181 H 327.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8A238B
RGBrgb(138, 35, 139)
HSLhsl(299, 60%, 34%)
HSVhsv(299, 75%, 55%)
CMYKcmyk(0.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(34.94, 55.00, -35.00)
CIE-LCHlch(34.94, 65.19, 327.53°)
OKLaboklab(46.31% 0.153 -0.0971)
OKLCHoklch(46.31% 0.181 327.6)
XYZxyz(15.7422, 8.4705, 25.2269)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A238B #248B23
analogous
#56238B #8A238B #8B2358
triadic
#8A238B #8B8A23 #238B8A
tetradic
#8A238B #8B5623 #248B23 #23588B
square
#8A238B #8B5623 #248B23 #23588B
split-complementary
#8A238B #588B23 #238B56
monochromatic
#290A29 #59175A #8A238B #BB2FBC #D354D4

Accessibility & contrast

On white

7.80
#8A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A238B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A238B#FFFFFF#000000##FFFFFF
##8A238B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#8E3455
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a238b;
/* rgb */ color: rgb(138, 35, 139);
/* oklch */ color: oklch(46.3% 0.181 327.6);
Tailwind
colors: {
  custom: {
    50: '#b069ad',
    500: '#8a238b',
    950: '#000000',
  },
}
SCSS
$custom: #8a238b;
$custom-light: #b069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a238b",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 299.423,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46306,
    "c": 0.18116,
    "h": 327.6
  },
  "luminance": 0.08469
}

Semantic roles & 50–950 ramp

primary
#8A238B
secondary
#53B852
accent
#E34546
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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