#8A74CC#8A74CC

#8A74CC is a mid, vivid violet. Relative luminance 0.223; OKLCH L 61.7% C 0.131 H 293.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8A74CC
RGBrgb(138, 116, 204)
HSLhsl(255, 46%, 63%)
HSVhsv(255, 43%, 80%)
CMYKcmyk(32.4%, 43.1%, 0%, 20%)
CIE-LABlab(54.29, 28.20, -42.73)
CIE-LCHlch(54.29, 51.20, 303.42°)
OKLaboklab(61.73% 0.0527 -0.12)
OKLCHoklch(61.73% 0.131 293.7)
XYZxyz(27.6229, 22.2532, 59.9550)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74CC #B6CC74
analogous
#748ACC #8A74CC #B674CC
triadic
#8A74CC #CC8A74 #74CC8A
tetradic
#8A74CC #CC748A #B6CC74 #74CCB6
square
#8A74CC #CC748A #B6CC74 #74CCB6
split-complementary
#8A74CC #CCB674 #8ACC74
monochromatic
#4C3591 #6447BC #8A74CC #B0A1DC #D5CEED

Accessibility & contrast

On white

3.85
#8A74CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#8A74CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74CC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74CC#FFFFFF#000000##000000
##8A74CC1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5983CF
Deuteranopia (green-blind)
#5C80CA
Tritanopia (blue-blind)
#7B8496
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a74cc;
/* rgb */ color: rgb(138, 116, 204);
/* oklch */ color: oklch(61.7% 0.131 293.7);
Tailwind
colors: {
  custom: {
    50: '#ae9cdc',
    500: '#8a74cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a74cc;
$custom-light: #ae9cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74cc",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 204
  },
  "hsl": {
    "h": 255,
    "s": 46.316,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.13102,
    "h": 293.7
  },
  "luminance": 0.22254
}

Semantic roles & 50–950 ramp

primary
#8A74CC
secondary
#D6DEBE
accent
#BA2C96
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A74CC

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

Preview Lab → · Contrast checker → · Palette generator →

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