#682AB4#682AB4

#682AB4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.201 H 298.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#682AB4
RGBrgb(104, 42, 180)
HSLhsl(267, 62%, 44%)
HSVhsv(267, 77%, 71%)
CMYKcmyk(42.2%, 76.7%, 0%, 29.4%)
CIE-LABlab(33.76, 54.34, -61.97)
CIE-LCHlch(33.76, 82.43, 311.25°)
OKLaboklab(45.36% 0.0951 -0.1773)
OKLCHoklch(45.36% 0.201 298.2)
XYZxyz(14.7730, 7.8940, 43.9165)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB4 #76B42A
analogous
#2A31B4 #682AB4 #AD2AB4
triadic
#682AB4 #B4682A #2AB468
tetradic
#682AB4 #B42A31 #76B42A #2AB4AD
square
#682AB4 #B42A31 #76B42A #2AB4AD
split-complementary
#682AB4 #B4AD2A #31B42A
monochromatic
#2F1351 #4B1E82 #682AB4 #8647D4 #A779E0

Accessibility & contrast

On white

8.14
#682AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#682AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB4#FFFFFF#000000##FFFFFF
##682AB41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#554F6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682ab4;
/* rgb */ color: rgb(104, 42, 180);
/* oklch */ color: oklch(45.4% 0.201 298.2);
Tailwind
colors: {
  custom: {
    50: '#9a6acb',
    500: '#682ab4',
    950: '#000000',
  },
}
SCSS
$custom: #682ab4;
$custom-light: #9a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab4",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 266.957,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45358,
    "c": 0.2012,
    "h": 298.2
  },
  "luminance": 0.07894
}

Semantic roles & 50–950 ramp

primary
#682AB4
secondary
#A1C872
accent
#E5439C
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#682AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva