#8A74B3#8A74B3

#8A74B3 is a mid, moderate violet. Relative luminance 0.211; OKLCH L 60.4% C 0.096 H 299.6°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A74B3
RGBrgb(138, 116, 179)
HSLhsl(261, 29%, 58%)
HSVhsv(261, 35%, 70%)
CMYKcmyk(22.9%, 35.2%, 0%, 29.8%)
CIE-LABlab(53.11, 21.87, -30.27)
CIE-LCHlch(53.11, 37.34, 305.85°)
OKLaboklab(60.44% 0.0476 -0.0839)
OKLCHoklch(60.44% 0.096 299.6)
XYZxyz(24.8615, 21.1486, 45.4114)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A74B3 #9DB374
analogous
#747EB3 #8A74B3 #A974B3
triadic
#8A74B3 #B38A74 #74B38A
tetradic
#8A74B3 #B3747E #9DB374 #74B3A9
square
#8A74B3 #B3747E #9DB374 #74B3A9
split-complementary
#8A74B3 #B3A974 #7EB374
monochromatic
#4F3D70 #6B5397 #8A74B3 #AB9CC9 #CDC3DE

Accessibility & contrast

On white

4.02
#8A74B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#8A74B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A74B3
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A74B3#FFFFFF#000000##000000
##8A74B31.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#657FB5
Deuteranopia (green-blind)
#697EB1
Tritanopia (blue-blind)
#837E8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8a74b3;
/* rgb */ color: rgb(138, 116, 179);
/* oklch */ color: oklch(60.4% 0.096 299.6);
Tailwind
colors: {
  custom: {
    50: '#ad9cca',
    500: '#8a74b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a74b3;
$custom-light: #ad9cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a74b3",
  "rgb": {
    "r": 138,
    "g": 116,
    "b": 179
  },
  "hsl": {
    "h": 260.952,
    "s": 29.302,
    "l": 57.843
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.09646,
    "h": 299.6
  },
  "luminance": 0.21149
}

Semantic roles & 50–950 ramp

primary
#8A74B3
secondary
#C5CEB5
accent
#C662A3
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A74B3

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

Preview Lab → · Contrast checker → · Palette generator →

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