#8A74BD#8A74BD

#8A74BD is a mid, moderate violet. Relative luminance 0.216; OKLCH L 60.9% C 0.110 H 296.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A74BD
RGBrgb(138, 116, 189)
HSLhsl(258, 36%, 60%)
HSVhsv(258, 39%, 74%)
CMYKcmyk(27%, 38.6%, 0%, 25.9%)
CIE-LABlab(53.57, 24.35, -35.31)
CIE-LCHlch(53.57, 42.89, 304.59°)
OKLaboklab(60.93% 0.0499 -0.0984)
OKLCHoklch(60.93% 0.11 296.9)
XYZxyz(25.9098, 21.5679, 50.9322)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74BD #A7BD74
analogous
#7483BD #8A74BD #AF74BD
triadic
#8A74BD #BD8A74 #74BD8A
tetradic
#8A74BD #BD7483 #A7BD74 #74BDAF
square
#8A74BD #BD7483 #A7BD74 #74BDAF
split-complementary
#8A74BD #BDAF74 #83BD74
monochromatic
#4E3B7C #694EA5 #8A74BD #AD9DD1 #D0C7E4

Accessibility & contrast

On white

3.95
#8A74BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8A74BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74BD
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74BD#FFFFFF#000000##000000
##8A74BD1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6180C0
Deuteranopia (green-blind)
#647FBB
Tritanopia (blue-blind)
#80818F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a74bd;
/* rgb */ color: rgb(138, 116, 189);
/* oklch */ color: oklch(60.9% 0.110 296.9);
Tailwind
colors: {
  custom: {
    50: '#ae9cd1',
    500: '#8a74bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a74bd;
$custom-light: #ae9cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74bd",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 189
  },
  "hsl": {
    "h": 258.082,
    "s": 35.61,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60935,
    "c": 0.11035,
    "h": 296.9
  },
  "luminance": 0.21568
}

Semantic roles & 50–950 ramp

primary
#8A74BD
secondary
#CCD5B8
accent
#CC5CAA
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A74BD

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

Preview Lab → · Contrast checker → · Palette generator →

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