#8A74CB#8A74CB

#8A74CB is a mid, vivid violet. Relative luminance 0.222; OKLCH L 61.7% C 0.130 H 293.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A74CB
RGBrgb(138, 116, 203)
HSLhsl(255, 46%, 63%)
HSVhsv(255, 43%, 80%)
CMYKcmyk(32%, 42.9%, 0%, 20.4%)
CIE-LABlab(54.24, 27.94, -42.24)
CIE-LCHlch(54.24, 50.64, 303.48°)
OKLaboklab(61.67% 0.0525 -0.1185)
OKLCHoklch(61.67% 0.13 293.9)
XYZxyz(27.5034, 22.2054, 59.3254)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74CB #B5CB74
analogous
#748ACB #8A74CB #B574CB
triadic
#8A74CB #CB8A74 #74CB8A
tetradic
#8A74CB #CB748A #B5CB74 #74CBB5
square
#8A74CB #CB748A #B5CB74 #74CBB5
split-complementary
#8A74CB #CBB574 #8ACB74
monochromatic
#4C368F #6547BA #8A74CB #AFA1DC #D5CDEC

Accessibility & contrast

On white

3.86
#8A74CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#8A74CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74CB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74CB#FFFFFF#000000##000000
##8A74CB1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a74cb;
/* rgb */ color: rgb(138, 116, 203);
/* oklch */ color: oklch(61.7% 0.130 293.9);
Tailwind
colors: {
  custom: {
    50: '#ae9cdb',
    500: '#8a74cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a74cb;
$custom-light: #ae9cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74cb",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 203
  },
  "hsl": {
    "h": 255.172,
    "s": 45.55,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61671,
    "c": 0.12964,
    "h": 293.9
  },
  "luminance": 0.22206
}

Semantic roles & 50–950 ramp

primary
#8A74CB
secondary
#D5DDBE
accent
#B92D95
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A74CB

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

Preview Lab → · Contrast checker → · Palette generator →

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