#682BA8#682BA8

#682BA8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.187 H 301.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#682BA8
RGBrgb(104, 43, 168)
HSLhsl(269, 59%, 41%)
HSVhsv(269, 74%, 66%)
CMYKcmyk(38.1%, 74.4%, 0%, 34.1%)
CIE-LABlab(32.91, 50.93, -56.19)
CIE-LCHlch(32.91, 75.83, 312.19°)
OKLaboklab(44.45% 0.0971 -0.1603)
OKLCHoklch(44.45% 0.187 301.2)
XYZxyz(13.6390, 7.4979, 37.7669)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA8 #6BA82B
analogous
#2B2DA8 #682BA8 #A72BA8
triadic
#682BA8 #A8682B #2BA868
tetradic
#682BA8 #A82B2D #6BA82B #2BA8A7
square
#682BA8 #A82B2D #6BA82B #2BA8A7
split-complementary
#682BA8 #A8A72B #2DA82B
monochromatic
#2C1247 #4A1F77 #682BA8 #8642CF #A572DB

Accessibility & contrast

On white

8.40
#682BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#682BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA8
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA8#FFFFFF#000000##FFFFFF
##682BA81.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#5A4B67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682ba8;
/* rgb */ color: rgb(104, 43, 168);
/* oklch */ color: oklch(44.5% 0.187 301.2);
Tailwind
colors: {
  custom: {
    50: '#996ac3',
    500: '#682ba8',
    950: '#000000',
  },
}
SCSS
$custom: #682ba8;
$custom-light: #996ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba8",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 269.28,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.18744,
    "h": 301.2
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#682BA8
secondary
#98C26C
accent
#E24596
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #682BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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