#8A74C8#8A74C8

#8A74C8 is a mid, vivid violet. Relative luminance 0.221; OKLCH L 61.5% C 0.126 H 294.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A74C8
RGBrgb(138, 116, 200)
HSLhsl(256, 43%, 62%)
HSVhsv(256, 42%, 78%)
CMYKcmyk(31%, 42%, 0%, 21.6%)
CIE-LABlab(54.09, 27.16, -40.77)
CIE-LCHlch(54.09, 48.99, 303.67°)
OKLaboklab(61.51% 0.052 -0.1142)
OKLCHoklch(61.51% 0.126 294.5)
XYZxyz(27.1494, 22.0638, 57.4607)
Luminance0.2206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74C8 #B2C874
analogous
#7488C8 #8A74C8 #B474C8
triadic
#8A74C8 #C88A74 #74C88A
tetradic
#8A74C8 #C87488 #B2C874 #74C8B4
square
#8A74C8 #C87488 #B2C874 #74C8B4
split-complementary
#8A74C8 #C8B474 #88C874
monochromatic
#4D378B #6548B7 #8A74C8 #AFA0D9 #D4CCEB

Accessibility & contrast

On white

3.88
#8A74C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8A74C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74C8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74C8#FFFFFF#000000##000000
##8A74C81.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B82CB
Deuteranopia (green-blind)
#5E80C6
Tritanopia (blue-blind)
#7C8394
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a74c8;
/* rgb */ color: rgb(138, 116, 200);
/* oklch */ color: oklch(61.5% 0.126 294.5);
Tailwind
colors: {
  custom: {
    50: '#ae9cd9',
    500: '#8a74c8',
    950: '#000000',
  },
}
SCSS
$custom: #8a74c8;
$custom-light: #ae9cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74c8",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 200
  },
  "hsl": {
    "h": 255.714,
    "s": 43.299,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61509,
    "c": 0.12553,
    "h": 294.5
  },
  "luminance": 0.22064
}

Semantic roles & 50–950 ramp

primary
#8A74C8
secondary
#D3DBBC
accent
#B62F93
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8A74C8

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

Preview Lab → · Contrast checker → · Palette generator →

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