#8A74B2#8A74B2

#8A74B2 is a mid, moderate violet. Relative luminance 0.211; OKLCH L 60.4% C 0.095 H 299.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A74B2
RGBrgb(138, 116, 178)
HSLhsl(261, 29%, 58%)
HSVhsv(261, 35%, 70%)
CMYKcmyk(22.5%, 34.8%, 0%, 30.2%)
CIE-LABlab(53.07, 21.63, -29.76)
CIE-LCHlch(53.07, 36.79, 306.01°)
OKLaboklab(60.39% 0.0474 -0.0824)
OKLCHoklch(60.39% 0.095 299.9)
XYZxyz(24.7607, 21.1083, 44.8807)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74B2 #9CB274
analogous
#747DB2 #8A74B2 #A974B2
triadic
#8A74B2 #B28A74 #74B28A
tetradic
#8A74B2 #B2747D #9CB274 #74B2A9
square
#8A74B2 #B2747D #9CB274 #74B2A9
split-complementary
#8A74B2 #B2A974 #7DB274
monochromatic
#4F3D6E #6B5396 #8A74B2 #AB9BC8 #CCC3DE

Accessibility & contrast

On white

4.02
#8A74B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8A74B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74B2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74B2#FFFFFF#000000##000000
##8A74B21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#657FB4
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#837E8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a74b2;
/* rgb */ color: rgb(138, 116, 178);
/* oklch */ color: oklch(60.4% 0.095 299.9);
Tailwind
colors: {
  custom: {
    50: '#ad9cc9',
    500: '#8a74b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a74b2;
$custom-light: #ad9cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74b2",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 178
  },
  "hsl": {
    "h": 261.29,
    "s": 28.704,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60392,
    "c": 0.09507,
    "h": 299.9
  },
  "luminance": 0.21108
}

Semantic roles & 50–950 ramp

primary
#8A74B2
secondary
#C5CDB4
accent
#C563A2
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A74B2

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

Preview Lab → · Contrast checker → · Palette generator →

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