#8A68B2#8A68B2

#8A68B2 is a mid, moderate violet. Relative luminance 0.185; OKLCH L 58.2% C 0.116 H 304.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A68B2
RGBrgb(138, 104, 178)
HSLhsl(268, 32%, 55%)
HSVhsv(268, 42%, 70%)
CMYKcmyk(22.5%, 41.6%, 0%, 30.2%)
CIE-LABlab(50.12, 28.67, -34.37)
CIE-LCHlch(50.12, 44.76, 309.84°)
OKLaboklab(58.15% 0.065 -0.0957)
OKLCHoklch(58.15% 0.116 304.2)
XYZxyz(23.4657, 18.5183, 44.4490)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A68B2 #90B268
analogous
#686BB2 #8A68B2 #AF68B2
triadic
#8A68B2 #B28A68 #68B28A
tetradic
#8A68B2 #B2686B #90B268 #68B2AF
square
#8A68B2 #B2686B #90B268 #68B2AF
split-complementary
#8A68B2 #B2AF68 #6BB268
monochromatic
#4E366A #6B4B92 #8A68B2 #A991C7 #C9B9DB

Accessibility & contrast

On white

4.46
#8A68B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A68B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A68B2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A68B2#FFFFFF#000000##000000
##8A68B21.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#5E77B0
Tritanopia (blue-blind)
#847484
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a68b2;
/* rgb */ color: rgb(138, 104, 178);
/* oklch */ color: oklch(58.2% 0.116 304.2);
Tailwind
colors: {
  custom: {
    50: '#ad93c9',
    500: '#8a68b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a68b2;
$custom-light: #ad93c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a68b2",
  "rgb": {
    "r": 138,
    "g": 104,
    "b": 178
  },
  "hsl": {
    "h": 267.568,
    "s": 32.456,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58154,
    "c": 0.11567,
    "h": 304.2
  },
  "luminance": 0.18518
}

Semantic roles & 50–950 ramp

primary
#8A68B2
secondary
#BCCAAB
accent
#C95F98
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #8A68B2

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

Preview Lab → · Contrast checker → · Palette generator →

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