#682BA2#682BA2

#682BA2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.181 H 302.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#682BA2
RGBrgb(104, 43, 162)
HSLhsl(271, 58%, 40%)
HSVhsv(271, 73%, 64%)
CMYKcmyk(35.8%, 73.5%, 0%, 36.5%)
CIE-LABlab(32.43, 49.46, -53.35)
CIE-LCHlch(32.43, 72.75, 312.83°)
OKLaboklab(43.96% 0.0984 -0.152)
OKLCHoklch(43.96% 0.181 302.9)
XYZxyz(13.0928, 7.2794, 34.8907)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA2 #65A22B
analogous
#2C2BA2 #682BA2 #A22BA1
triadic
#682BA2 #A2682B #2BA268
tetradic
#682BA2 #A22C2B #65A22B #2BA1A2
square
#682BA2 #A22C2B #65A22B #2BA1A2
split-complementary
#682BA2 #A1A22B #2BA22C
monochromatic
#2A1141 #491E72 #682BA2 #873ECC #A56FD9

Accessibility & contrast

On white

8.55
#682BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#682BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA2
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA2#FFFFFF#000000##FFFFFF
##682BA21.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#5C4864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682ba2;
/* rgb */ color: rgb(104, 43, 162);
/* oklch */ color: oklch(44.0% 0.181 302.9);
Tailwind
colors: {
  custom: {
    50: '#986abe',
    500: '#682ba2',
    950: '#000000',
  },
}
SCSS
$custom: #682ba2;
$custom-light: #986abe;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba2",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 270.756,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43964,
    "c": 0.18104,
    "h": 302.9
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#682BA2
secondary
#93C069
accent
#E14792
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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