#8A74BA#8A74BA

#8A74BA is a mid, moderate violet. Relative luminance 0.214; OKLCH L 60.8% C 0.106 H 297.6°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A74BA
RGBrgb(138, 116, 186)
HSLhsl(259, 34%, 59%)
HSVhsv(259, 38%, 73%)
CMYKcmyk(25.8%, 37.6%, 0%, 27.1%)
CIE-LABlab(53.43, 23.60, -33.81)
CIE-LCHlch(53.43, 41.23, 304.91°)
OKLaboklab(60.78% 0.0492 -0.0941)
OKLCHoklch(60.78% 0.106 297.6)
XYZxyz(25.5875, 21.4390, 49.2349)
Luminance0.2144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74BA #A4BA74
analogous
#7481BA #8A74BA #AD74BA
triadic
#8A74BA #BA8A74 #74BA8A
tetradic
#8A74BA #BA7481 #A4BA74 #74BAAD
square
#8A74BA #BA7481 #A4BA74 #74BAAD
split-complementary
#8A74BA #BAAD74 #81BA74
monochromatic
#4F3C78 #6950A1 #8A74BA #AC9DCE #CFC6E3

Accessibility & contrast

On white

3.97
#8A74BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#8A74BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74BA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74BA#FFFFFF#000000##000000
##8A74BA1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6280BD
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#81808E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a74ba;
/* rgb */ color: rgb(138, 116, 186);
/* oklch */ color: oklch(60.8% 0.106 297.6);
Tailwind
colors: {
  custom: {
    50: '#ad9ccf',
    500: '#8a74ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a74ba;
$custom-light: #ad9ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74ba",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 186
  },
  "hsl": {
    "h": 258.857,
    "s": 33.654,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60783,
    "c": 0.10618,
    "h": 297.6
  },
  "luminance": 0.21439
}

Semantic roles & 50–950 ramp

primary
#8A74BA
secondary
#CAD3B7
accent
#CA5EA8
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A74BA

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

Preview Lab → · Contrast checker → · Palette generator →

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