#8A61A2#8A61A2

#8A61A2 is a mid, moderate violet. Relative luminance 0.166; OKLCH L 56.1% C 0.107 H 312.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A61A2
RGBrgb(138, 97, 162)
HSLhsl(278, 26%, 51%)
HSVhsv(278, 40%, 64%)
CMYKcmyk(14.8%, 40.1%, 0%, 36.5%)
CIE-LABlab(47.70, 29.01, -28.78)
CIE-LCHlch(47.70, 40.87, 315.22°)
OKLaboklab(56.09% 0.0722 -0.0795)
OKLCHoklch(56.09% 0.107 312.3)
XYZxyz(21.2764, 16.5617, 36.2513)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A61A2 #79A261
analogous
#6961A2 #8A61A2 #A26199
triadic
#8A61A2 #A28A61 #61A28A
tetradic
#8A61A2 #A26961 #79A261 #6199A2
square
#8A61A2 #A26961 #79A261 #6199A2
split-complementary
#8A61A2 #99A261 #61A269
monochromatic
#493356 #6A497D #8A61A2 #A788B9 #C3AECF

Accessibility & contrast

On white

4.87
#8A61A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A61A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A61A2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A61A2#FFFFFF#000000##FFFFFF
##8A61A21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#556FA4
Deuteranopia (green-blind)
#5F72A0
Tritanopia (blue-blind)
#886A7A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a61a2;
/* rgb */ color: rgb(138, 97, 162);
/* oklch */ color: oklch(56.1% 0.107 312.3);
Tailwind
colors: {
  custom: {
    50: '#ad8ebe',
    500: '#8a61a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a61a2;
$custom-light: #ad8ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a61a2",
  "rgb": {
    "r": 138,
    "g": 97,
    "b": 162
  },
  "hsl": {
    "h": 277.846,
    "s": 25.896,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56086,
    "c": 0.10744,
    "h": 312.3
  },
  "luminance": 0.16561
}

Semantic roles & 50–950 ramp

primary
#8A61A2
secondary
#ACBEA1
accent
#C26688
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A61A2

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

Preview Lab → · Contrast checker → · Palette generator →

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