#682AB1#682AB1

#682AB1 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.198 H 299.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#682AB1
RGBrgb(104, 42, 177)
HSLhsl(268, 62%, 43%)
HSVhsv(268, 76%, 69%)
CMYKcmyk(41.2%, 76.3%, 0%, 30.6%)
CIE-LABlab(33.51, 53.60, -60.61)
CIE-LCHlch(33.51, 80.91, 311.49°)
OKLaboklab(45.1% 0.0959 -0.1733)
OKLCHoklch(45.1% 0.198 299)
XYZxyz(14.4707, 7.7731, 42.3244)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AB1 #73B12A
analogous
#2A2FB1 #682AB1 #AC2AB1
triadic
#682AB1 #B1682A #2AB168
tetradic
#682AB1 #B12A2F #73B12A #2AB1AC
square
#682AB1 #B12A2F #73B12A #2AB1AC
split-complementary
#682AB1 #B1AC2A #2FB12A
monochromatic
#2E134E #4B1E80 #682AB1 #8645D3 #A677DF

Accessibility & contrast

On white

8.22
#682AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#682AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AB1
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AB1#FFFFFF#000000##FFFFFF
##682AB11.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#564E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682ab1;
/* rgb */ color: rgb(104, 42, 177);
/* oklch */ color: oklch(45.1% 0.198 299.0);
Tailwind
colors: {
  custom: {
    50: '#9a6ac9',
    500: '#682ab1',
    950: '#000000',
  },
}
SCSS
$custom: #682ab1;
$custom-light: #9a6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#682ab1",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 267.556,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.451,
    "c": 0.19805,
    "h": 299
  },
  "luminance": 0.07773
}

Semantic roles & 50–950 ramp

primary
#682AB1
secondary
#9FC670
accent
#E5439A
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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