#682AB7#682AB7

#682AB7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.204 H 297.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#682AB7
RGBrgb(104, 42, 183)
HSLhsl(266, 63%, 44%)
HSVhsv(266, 77%, 72%)
CMYKcmyk(43.2%, 77%, 0%, 28.2%)
CIE-LABlab(34.02, 55.09, -63.33)
CIE-LCHlch(34.02, 83.94, 311.02°)
OKLaboklab(45.62% 0.0943 -0.1813)
OKLCHoklch(45.62% 0.204 297.5)
XYZxyz(15.0819, 8.0176, 45.5435)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB7 #79B72A
analogous
#2A33B7 #682AB7 #AF2AB7
triadic
#682AB7 #B7682A #2AB768
tetradic
#682AB7 #B72A33 #79B72A #2AB7AF
square
#682AB7 #B72A33 #79B72A #2AB7AF
split-complementary
#682AB7 #B7AF2A #33B72A
monochromatic
#2F1353 #4C1F85 #682AB7 #8749D5 #A87BE1

Accessibility & contrast

On white

8.07
#682AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#682AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB7#FFFFFF#000000##FFFFFF
##682AB71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#535070
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682ab7;
/* rgb */ color: rgb(104, 42, 183);
/* oklch */ color: oklch(45.6% 0.204 297.5);
Tailwind
colors: {
  custom: {
    50: '#9b6bce',
    500: '#682ab7',
    950: '#000000',
  },
}
SCSS
$custom: #682ab7;
$custom-light: #9b6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab7",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 266.383,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45618,
    "c": 0.20435,
    "h": 297.5
  },
  "luminance": 0.08018
}

Semantic roles & 50–950 ramp

primary
#682AB7
secondary
#A4C974
accent
#E6429E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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