#8A7CAB#8A7CAB

#8A7CAB is a mid, moderate violet. Relative luminance 0.228; OKLCH L 61.6% C 0.072 H 297.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A7CAB
RGBrgb(138, 124, 171)
HSLhsl(258, 22%, 58%)
HSVhsv(258, 27%, 67%)
CMYKcmyk(19.3%, 27.5%, 0%, 32.9%)
CIE-LABlab(54.82, 15.25, -23.01)
CIE-LCHlch(54.82, 27.60, 303.54°)
OKLaboklab(61.64% 0.0335 -0.0632)
OKLCHoklch(61.64% 0.072 297.9)
XYZxyz(25.0380, 22.7587, 41.5940)
Luminance0.2276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CAB #9DAB7C
analogous
#7C86AB #8A7CAB #A17CAB
triadic
#8A7CAB #AB8A7C #7CAB8A
tetradic
#8A7CAB #AB7C86 #9DAB7C #7CABA1
square
#8A7CAB #AB7C86 #9DAB7C #7CABA1
split-complementary
#8A7CAB #ABA17C #86AB7C
monochromatic
#4F4369 #6B5B8E #8A7CAB #ABA1C3 #CDC7DB

Accessibility & contrast

On white

3.78
#8A7CAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#8A7CAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CAB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CAB#FFFFFF#000000##000000
##8A7CAB1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7283AD
Deuteranopia (green-blind)
#7483AA
Tritanopia (blue-blind)
#84838D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a7cab;
/* rgb */ color: rgb(138, 124, 171);
/* oklch */ color: oklch(61.6% 0.072 297.9);
Tailwind
colors: {
  custom: {
    50: '#aca2c4',
    500: '#8a7cab',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cab;
$custom-light: #aca2c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cab",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 171
  },
  "hsl": {
    "h": 257.872,
    "s": 21.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61642,
    "c": 0.07155,
    "h": 297.9
  },
  "luminance": 0.22759
}

Semantic roles & 50–950 ramp

primary
#8A7CAB
secondary
#C5CBB8
accent
#BE69A5
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100F12
muted
#7F7E81

Preview Lab

Preview with #8A7CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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