#682AB8#682AB8

#682AB8 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.205 H 297.2°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#682AB8
RGBrgb(104, 42, 184)
HSLhsl(266, 63%, 44%)
HSVhsv(266, 77%, 72%)
CMYKcmyk(43.5%, 77.2%, 0%, 27.8%)
CIE-LABlab(34.11, 55.34, -63.78)
CIE-LCHlch(34.11, 84.44, 310.95°)
OKLaboklab(45.71% 0.094 -0.1826)
OKLCHoklch(45.71% 0.205 297.2)
XYZxyz(15.1863, 8.0594, 46.0936)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB8 #7AB82A
analogous
#2A33B8 #682AB8 #AF2AB8
triadic
#682AB8 #B8682A #2AB868
tetradic
#682AB8 #B82A33 #7AB82A #2AB8AF
square
#682AB8 #B82A33 #7AB82A #2AB8AF
split-complementary
#682AB8 #B8AF2A #33B82A
monochromatic
#301354 #4C1F86 #682AB8 #874AD6 #A87BE1

Accessibility & contrast

On white

8.04
#682AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#682AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB8
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB8#FFFFFF#000000##FFFFFF
##682AB81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#535170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682ab8;
/* rgb */ color: rgb(104, 42, 184);
/* oklch */ color: oklch(45.7% 0.205 297.2);
Tailwind
colors: {
  custom: {
    50: '#9b6bce',
    500: '#682ab8',
    950: '#000000',
  },
}
SCSS
$custom: #682ab8;
$custom-light: #9b6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab8",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 266.197,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45706,
    "c": 0.2054,
    "h": 297.2
  },
  "luminance": 0.0806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #682AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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