#8A74BB#8A74BB

#8A74BB is a mid, moderate violet. Relative luminance 0.215; OKLCH L 60.8% C 0.108 H 297.4°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A74BB
RGBrgb(138, 116, 187)
HSLhsl(259, 34%, 59%)
HSVhsv(259, 38%, 73%)
CMYKcmyk(26.2%, 38%, 0%, 26.7%)
CIE-LABlab(53.47, 23.85, -34.31)
CIE-LCHlch(53.47, 41.78, 304.80°)
OKLaboklab(60.83% 0.0495 -0.0955)
OKLCHoklch(60.83% 0.108 297.4)
XYZxyz(25.6942, 21.4817, 49.7968)
Luminance0.2148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74BB #A5BB74
analogous
#7481BB #8A74BB #AE74BB
triadic
#8A74BB #BB8A74 #74BB8A
tetradic
#8A74BB #BB7481 #A5BB74 #74BBAE
square
#8A74BB #BB7481 #A5BB74 #74BBAE
split-complementary
#8A74BB #BBAE74 #81BB74
monochromatic
#4F3B79 #694FA2 #8A74BB #AD9DCF #CFC6E3

Accessibility & contrast

On white

3.96
#8A74BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8A74BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74BB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74BB#FFFFFF#000000##000000
##8A74BB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6180BE
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#80808F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a74bb;
/* rgb */ color: rgb(138, 116, 187);
/* oklch */ color: oklch(60.8% 0.108 297.4);
Tailwind
colors: {
  custom: {
    50: '#ad9ccf',
    500: '#8a74bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a74bb;
$custom-light: #ad9ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74bb",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 187
  },
  "hsl": {
    "h": 258.592,
    "s": 34.3,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60834,
    "c": 0.10757,
    "h": 297.4
  },
  "luminance": 0.21482
}

Semantic roles & 50–950 ramp

primary
#8A74BB
secondary
#CBD3B8
accent
#CA5DA9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A74BB

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

Preview Lab → · Contrast checker → · Palette generator →

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