#8A74CA#8A74CA

#8A74CA is a mid, vivid violet. Relative luminance 0.222; OKLCH L 61.6% C 0.128 H 294.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A74CA
RGBrgb(138, 116, 202)
HSLhsl(255, 45%, 62%)
HSVhsv(255, 43%, 79%)
CMYKcmyk(31.7%, 42.6%, 0%, 20.8%)
CIE-LABlab(54.19, 27.68, -41.75)
CIE-LCHlch(54.19, 50.09, 303.54°)
OKLaboklab(61.62% 0.0524 -0.1171)
OKLCHoklch(61.62% 0.128 294.1)
XYZxyz(27.3846, 22.1579, 58.6998)
Luminance0.2216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74CA #B4CA74
analogous
#7489CA #8A74CA #B574CA
triadic
#8A74CA #CA8A74 #74CA8A
tetradic
#8A74CA #CA7489 #B4CA74 #74CAB5
square
#8A74CA #CA7489 #B4CA74 #74CAB5
split-complementary
#8A74CA #CAB574 #89CA74
monochromatic
#4C368E #6548B9 #8A74CA #AFA0DB #D5CDEC

Accessibility & contrast

On white

3.87
#8A74CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8A74CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74CA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74CA#FFFFFF#000000##000000
##8A74CA1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A82CD
Deuteranopia (green-blind)
#5D80C8
Tritanopia (blue-blind)
#7C8495
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a74ca;
/* rgb */ color: rgb(138, 116, 202);
/* oklch */ color: oklch(61.6% 0.128 294.1);
Tailwind
colors: {
  custom: {
    50: '#ae9cda',
    500: '#8a74ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a74ca;
$custom-light: #ae9cda;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74ca",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 255.349,
    "s": 44.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61617,
    "c": 0.12828,
    "h": 294.1
  },
  "luminance": 0.22158
}

Semantic roles & 50–950 ramp

primary
#8A74CA
secondary
#D5DDBD
accent
#B82E95
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8A74CA

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

Preview Lab → · Contrast checker → · Palette generator →

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