#682AB5#682AB5

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

Color values

HEX#682AB5
RGBrgb(104, 42, 181)
HSLhsl(267, 62%, 44%)
HSVhsv(267, 77%, 71%)
CMYKcmyk(42.5%, 76.8%, 0%, 29%)
CIE-LABlab(33.85, 54.59, -62.43)
CIE-LCHlch(33.85, 82.93, 311.17°)
OKLaboklab(45.45% 0.0948 -0.1786)
OKLCHoklch(45.45% 0.202 298)
XYZxyz(14.8752, 7.9349, 44.4550)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB5 #77B52A
analogous
#2A31B5 #682AB5 #AD2AB5
triadic
#682AB5 #B5682A #2AB568
tetradic
#682AB5 #B52A31 #77B52A #2AB5AD
square
#682AB5 #B52A31 #77B52A #2AB5AD
split-complementary
#682AB5 #B5AD2A #31B52A
monochromatic
#2F1352 #4B1E83 #682AB5 #8748D4 #A779E0

Accessibility & contrast

On white

8.12
#682AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#682AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB5
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB5#FFFFFF#000000##FFFFFF
##682AB51.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#544F6E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682ab5;
/* rgb */ color: rgb(104, 42, 181);
/* oklch */ color: oklch(45.4% 0.202 298.0);
Tailwind
colors: {
  custom: {
    50: '#9a6bcc',
    500: '#682ab5',
    950: '#000000',
  },
}
SCSS
$custom: #682ab5;
$custom-light: #9a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab5",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 266.763,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.20226,
    "h": 298
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

primary
#682AB5
secondary
#A2C873
accent
#E5429D
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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