#8A74A2#8A74A2

#8A74A2 is a mid, moderate violet. Relative luminance 0.205; OKLCH L 59.7% C 0.073 H 306.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A74A2
RGBrgb(138, 116, 162)
HSLhsl(269, 20%, 55%)
HSVhsv(269, 28%, 64%)
CMYKcmyk(14.8%, 28.4%, 0%, 36.5%)
CIE-LABlab(52.40, 17.86, -21.52)
CIE-LCHlch(52.40, 27.96, 309.69°)
OKLaboklab(59.66% 0.043 -0.0589)
OKLCHoklch(59.66% 0.073 306.1)
XYZxyz(23.2470, 20.5028, 36.9082)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74A2 #8CA274
analogous
#7475A2 #8A74A2 #A174A2
triadic
#8A74A2 #A28A74 #74A28A
tetradic
#8A74A2 #A27475 #8CA274 #74A2A1
square
#8A74A2 #A27475 #8CA274 #74A2A1
split-complementary
#8A74A2 #A2A174 #75A274
monochromatic
#4D3E5D #6B5782 #8A74A2 #A999BB #C8BDD3

Accessibility & contrast

On white

4.12
#8A74A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A74A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74A2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74A2#FFFFFF#000000##000000
##8A74A21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C7CA4
Deuteranopia (green-blind)
#707DA1
Tritanopia (blue-blind)
#877A84
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a74a2;
/* rgb */ color: rgb(138, 116, 162);
/* oklch */ color: oklch(59.7% 0.073 306.1);
Tailwind
colors: {
  custom: {
    50: '#ac9cbd',
    500: '#8a74a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a74a2;
$custom-light: #ac9cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74a2",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 162
  },
  "hsl": {
    "h": 268.696,
    "s": 19.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59662,
    "c": 0.07296,
    "h": 306.1
  },
  "luminance": 0.20503
}

Semantic roles & 50–950 ramp

primary
#8A74A2
secondary
#B9C3AF
accent
#BC6B96
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#100E12
muted
#7F7E81

Preview Lab

Preview with #8A74A2

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

Preview Lab → · Contrast checker → · Palette generator →

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