#8A74CD#8A74CD

#8A74CD is a mid, vivid violet. Relative luminance 0.223; OKLCH L 61.8% C 0.132 H 293.5°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A74CD
RGBrgb(138, 116, 205)
HSLhsl(255, 47%, 63%)
HSVhsv(255, 43%, 80%)
CMYKcmyk(32.7%, 43.4%, 0%, 19.6%)
CIE-LABlab(54.35, 28.46, -43.22)
CIE-LCHlch(54.35, 51.75, 303.37°)
OKLaboklab(61.78% 0.0528 -0.1214)
OKLCHoklch(61.78% 0.132 293.5)
XYZxyz(27.7433, 22.3013, 60.5887)
Luminance0.2230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74CD #B7CD74
analogous
#748BCD #8A74CD #B674CD
triadic
#8A74CD #CD8A74 #74CD8A
tetradic
#8A74CD #CD748B #B7CD74 #74CDB6
square
#8A74CD #CD748B #B7CD74 #74CDB6
split-complementary
#8A74CD #CDB674 #8BCD74
monochromatic
#4C3592 #6447BD #8A74CD #B0A1DD #D6CEED

Accessibility & contrast

On white

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

On black

5.46
#8A74CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74CD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74CD#FFFFFF#000000##000000
##8A74CD1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5883D0
Deuteranopia (green-blind)
#5B80CB
Tritanopia (blue-blind)
#7B8597
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a74cd;
/* rgb */ color: rgb(138, 116, 205);
/* oklch */ color: oklch(61.8% 0.132 293.5);
Tailwind
colors: {
  custom: {
    50: '#af9cdc',
    500: '#8a74cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a74cd;
$custom-light: #af9cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74cd",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 254.831,
    "s": 47.09,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61781,
    "c": 0.13238,
    "h": 293.5
  },
  "luminance": 0.22302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A74CD

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

Preview Lab → · Contrast checker → · Palette generator →

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