#8A7EBB#8A7EBB

#8A7EBB is a light, moderate violet. Relative luminance 0.239; OKLCH L 62.8% C 0.091 H 292.6°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A7EBB
RGBrgb(138, 126, 187)
HSLhsl(252, 31%, 61%)
HSVhsv(252, 33%, 73%)
CMYKcmyk(26.2%, 32.6%, 0%, 26.7%)
CIE-LABlab(56.00, 17.97, -30.37)
CIE-LCHlch(56.00, 35.29, 300.62°)
OKLaboklab(62.77% 0.0351 -0.0842)
OKLCHoklch(62.77% 0.091 292.6)
XYZxyz(26.9096, 23.9125, 50.2019)
Luminance0.2391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EBB #AFBB7E
analogous
#7E91BB #8A7EBB #A97EBB
triadic
#8A7EBB #BB8A7E #7EBB8A
tetradic
#8A7EBB #BB7E91 #AFBB7E #7EBBA9
square
#8A7EBB #BB7E91 #AFBB7E #7EBBA9
split-complementary
#8A7EBB #BBA97E #91BB7E
monochromatic
#4D427D #6657A5 #8A7EBB #AEA6D0 #D3CEE5

Accessibility & contrast

On white

3.63
#8A7EBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8A7EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EBB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EBB#FFFFFF#000000##000000
##8A7EBB1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E87BD
Deuteranopia (green-blind)
#6F85B9
Tritanopia (blue-blind)
#808894
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a7ebb;
/* rgb */ color: rgb(138, 126, 187);
/* oklch */ color: oklch(62.8% 0.091 292.6);
Tailwind
colors: {
  custom: {
    50: '#ada3cf',
    500: '#8a7ebb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ebb;
$custom-light: #ada3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ebb",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 187
  },
  "hsl": {
    "h": 251.803,
    "s": 30.964,
    "l": 61.373
  },
  "oklch": {
    "l": 0.62765,
    "c": 0.09122,
    "h": 292.6
  },
  "luminance": 0.23913
}

Semantic roles & 50–950 ramp

primary
#8A7EBB
secondary
#D1D6BF
accent
#AA3C94
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#100F14
muted
#7F7F82

Preview Lab

Preview with #8A7EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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