#8A7BC2#8A7BC2

#8A7BC2 is a light, moderate violet. Relative luminance 0.235; OKLCH L 62.5% C 0.106 H 292.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A7BC2
RGBrgb(138, 123, 194)
HSLhsl(253, 37%, 62%)
HSVhsv(253, 37%, 76%)
CMYKcmyk(28.9%, 36.6%, 0%, 23.9%)
CIE-LABlab(55.55, 21.50, -35.07)
CIE-LCHlch(55.55, 41.14, 301.51°)
OKLaboklab(62.52% 0.041 -0.0977)
OKLCHoklch(62.52% 0.106 292.8)
XYZxyz(27.2994, 23.4638, 54.1192)
Luminance0.2346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BC2 #B3C27B
analogous
#7B90C2 #8A7BC2 #AE7BC2
triadic
#8A7BC2 #C28A7B #7BC28A
tetradic
#8A7BC2 #C27B90 #B3C27B #7BC2AE
square
#8A7BC2 #C27B90 #B3C27B #7BC2AE
split-complementary
#8A7BC2 #C2AE7B #90C27B
monochromatic
#4D3E85 #6551AF #8A7BC2 #AFA5D5 #D4CFE9

Accessibility & contrast

On white

3.69
#8A7BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#8A7BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BC2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BC2#FFFFFF#000000##000000
##8A7BC21.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6786C5
Deuteranopia (green-blind)
#6984C0
Tritanopia (blue-blind)
#7E8795
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a7bc2;
/* rgb */ color: rgb(138, 123, 194);
/* oklch */ color: oklch(62.5% 0.106 292.8);
Tailwind
colors: {
  custom: {
    50: '#aea1d4',
    500: '#8a7bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bc2;
$custom-light: #aea1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bc2",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 252.676,
    "s": 36.788,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6252,
    "c": 0.106,
    "h": 292.8
  },
  "luminance": 0.23464
}

Semantic roles & 50–950 ramp

primary
#8A7BC2
secondary
#D4D9BF
accent
#B03696
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100F14
muted
#7F7E83

Preview Lab

Preview with #8A7BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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