#682BA5#682BA5

#682BA5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.184 H 302.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#682BA5
RGBrgb(104, 43, 165)
HSLhsl(270, 59%, 41%)
HSVhsv(270, 74%, 65%)
CMYKcmyk(37%, 73.9%, 0%, 35.3%)
CIE-LABlab(32.67, 50.19, -54.78)
CIE-LCHlch(32.67, 74.29, 312.50°)
OKLaboklab(44.21% 0.0978 -0.1562)
OKLCHoklch(44.21% 0.184 302)
XYZxyz(13.3627, 7.3874, 36.3119)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA5 #68A52B
analogous
#2B2BA5 #682BA5 #A52BA5
triadic
#682BA5 #A5682B #2BA568
tetradic
#682BA5 #A52B2B #68A52B #2BA5A5
square
#682BA5 #A52B2B #68A52B #2BA5A5
split-complementary
#682BA5 #A5A52B #2BA52B
monochromatic
#2B1244 #491E74 #682BA5 #8740CD #A571DA

Accessibility & contrast

On white

8.48
#682BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#682BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA5
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA5#FFFFFF#000000##FFFFFF
##682BA51.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#5B4966
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682ba5;
/* rgb */ color: rgb(104, 43, 165);
/* oklch */ color: oklch(44.2% 0.184 302.0);
Tailwind
colors: {
  custom: {
    50: '#996ac1',
    500: '#682ba5',
    950: '#000000',
  },
}
SCSS
$custom: #682ba5;
$custom-light: #996ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba5",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 270,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44207,
    "c": 0.18424,
    "h": 302
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#682BA5
secondary
#96C16B
accent
#E24694
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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