#682BA1#682BA1

#682BA1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.180 H 303.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#682BA1
RGBrgb(104, 43, 161)
HSLhsl(271, 58%, 40%)
HSVhsv(271, 73%, 63%)
CMYKcmyk(35.4%, 73.3%, 0%, 36.9%)
CIE-LABlab(32.36, 49.21, -52.88)
CIE-LCHlch(32.36, 72.23, 312.94°)
OKLaboklab(43.88% 0.0986 -0.1506)
OKLCHoklch(43.88% 0.18 303.2)
XYZxyz(13.0043, 7.2440, 34.4244)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA1 #64A12B
analogous
#2D2BA1 #682BA1 #A12B9F
triadic
#682BA1 #A1682B #2BA168
tetradic
#682BA1 #A12D2B #64A12B #2B9FA1
square
#682BA1 #A12D2B #64A12B #2B9FA1
split-complementary
#682BA1 #9FA12B #2BA12D
monochromatic
#2A1140 #491E71 #682BA1 #873ECB #A56ED8

Accessibility & contrast

On white

8.58
#682BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#682BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA1
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA1#FFFFFF#000000##FFFFFF
##682BA11.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#5C4863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682ba1;
/* rgb */ color: rgb(104, 43, 161);
/* oklch */ color: oklch(43.9% 0.180 303.2);
Tailwind
colors: {
  custom: {
    50: '#986abe',
    500: '#682ba1',
    950: '#000000',
  },
}
SCSS
$custom: #682ba1;
$custom-light: #986abe;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba1",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 271.017,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.43883,
    "c": 0.17997,
    "h": 303.2
  },
  "luminance": 0.07244
}

Semantic roles & 50–950 ramp

primary
#682BA1
secondary
#92BF69
accent
#E14791
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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