#8A74BE#8A74BE

#8A74BE is a mid, moderate violet. Relative luminance 0.216; OKLCH L 61.0% C 0.112 H 296.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A74BE
RGBrgb(138, 116, 190)
HSLhsl(258, 36%, 60%)
HSVhsv(258, 39%, 75%)
CMYKcmyk(27.4%, 38.9%, 0%, 25.5%)
CIE-LABlab(53.61, 24.60, -35.81)
CIE-LCHlch(53.61, 43.45, 304.48°)
OKLaboklab(60.99% 0.0501 -0.0999)
OKLCHoklch(60.99% 0.112 296.6)
XYZxyz(26.0187, 21.6115, 51.5059)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74BE #A8BE74
analogous
#7483BE #8A74BE #AF74BE
triadic
#8A74BE #BE8A74 #74BE8A
tetradic
#8A74BE #BE7483 #A8BE74 #74BEAF
square
#8A74BE #BE7483 #A8BE74 #74BEAF
split-complementary
#8A74BE #BEAF74 #83BE74
monochromatic
#4E3A7D #684EA7 #8A74BE #AD9ED2 #D0C7E5

Accessibility & contrast

On white

3.95
#8A74BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8A74BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74BE
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74BE#FFFFFF#000000##000000
##8A74BE1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6080C1
Deuteranopia (green-blind)
#647FBC
Tritanopia (blue-blind)
#7F8190
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a74be;
/* rgb */ color: rgb(138, 116, 190);
/* oklch */ color: oklch(61.0% 0.112 296.6);
Tailwind
colors: {
  custom: {
    50: '#ae9cd2',
    500: '#8a74be',
    950: '#000000',
  },
}
SCSS
$custom: #8a74be;
$custom-light: #ae9cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74be",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 190
  },
  "hsl": {
    "h": 257.838,
    "s": 36.275,
    "l": 60
  },
  "oklch": {
    "l": 0.60986,
    "c": 0.11174,
    "h": 296.6
  },
  "luminance": 0.21612
}

Semantic roles & 50–950 ramp

primary
#8A74BE
secondary
#CDD5B9
accent
#CC5CAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8A74BE

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

Preview Lab → · Contrast checker → · Palette generator →

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