#8A74BC#8A74BC

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

Color values

HEX#8A74BC
RGBrgb(138, 116, 188)
HSLhsl(258, 35%, 60%)
HSVhsv(258, 38%, 74%)
CMYKcmyk(26.6%, 38.3%, 0%, 26.3%)
CIE-LABlab(53.52, 24.10, -34.81)
CIE-LCHlch(53.52, 42.34, 304.69°)
OKLaboklab(60.88% 0.0497 -0.097)
OKLCHoklch(60.88% 0.109 297.1)
XYZxyz(25.8016, 21.5247, 50.3625)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74BC #A6BC74
analogous
#7482BC #8A74BC #AE74BC
triadic
#8A74BC #BC8A74 #74BC8A
tetradic
#8A74BC #BC7482 #A6BC74 #74BCAE
square
#8A74BC #BC7482 #A6BC74 #74BCAE
split-complementary
#8A74BC #BCAE74 #82BC74
monochromatic
#4E3B7B #694FA4 #8A74BC #AD9DD0 #D0C7E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A74BC#FFFFFF#000000##000000
##8A74BC1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a74bc;
/* rgb */ color: rgb(138, 116, 188);
/* oklch */ color: oklch(60.9% 0.109 297.1);
Tailwind
colors: {
  custom: {
    50: '#ad9cd0',
    500: '#8a74bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a74bc;
$custom-light: #ad9cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74bc",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 188
  },
  "hsl": {
    "h": 258.333,
    "s": 34.951,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60884,
    "c": 0.10896,
    "h": 297.1
  },
  "luminance": 0.21525
}

Semantic roles & 50–950 ramp

primary
#8A74BC
secondary
#CBD4B8
accent
#CB5DA9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A74BC

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

Preview Lab → · Contrast checker → · Palette generator →

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