#682AB3#682AB3

#682AB3 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.200 H 298.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#682AB3
RGBrgb(104, 42, 179)
HSLhsl(267, 62%, 43%)
HSVhsv(267, 77%, 70%)
CMYKcmyk(41.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(33.68, 54.09, -61.52)
CIE-LCHlch(33.68, 81.92, 311.33°)
OKLaboklab(45.27% 0.0954 -0.176)
OKLCHoklch(45.27% 0.2 298.5)
XYZxyz(14.6715, 7.8534, 43.3820)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB3 #75B32A
analogous
#2A31B3 #682AB3 #AC2AB3
triadic
#682AB3 #B3682A #2AB368
tetradic
#682AB3 #B32A31 #75B32A #2AB3AC
square
#682AB3 #B32A31 #75B32A #2AB3AC
split-complementary
#682AB3 #B3AC2A #31B32A
monochromatic
#2E1350 #4B1E81 #682AB3 #8646D4 #A778DF

Accessibility & contrast

On white

8.17
#682AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#682AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB3
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB3#FFFFFF#000000##FFFFFF
##682AB31.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#554F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682ab3;
/* rgb */ color: rgb(104, 42, 179);
/* oklch */ color: oklch(45.3% 0.200 298.5);
Tailwind
colors: {
  custom: {
    50: '#9a6acb',
    500: '#682ab3',
    950: '#000000',
  },
}
SCSS
$custom: #682ab3;
$custom-light: #9a6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab3",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 267.153,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45272,
    "c": 0.20016,
    "h": 298.5
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #682AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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