#682BA7#682BA7

#682BA7 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.186 H 301.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#682BA7
RGBrgb(104, 43, 167)
HSLhsl(270, 59%, 41%)
HSVhsv(270, 74%, 65%)
CMYKcmyk(37.7%, 74.3%, 0%, 34.5%)
CIE-LABlab(32.83, 50.68, -55.72)
CIE-LCHlch(32.83, 75.32, 312.29°)
OKLaboklab(44.37% 0.0973 -0.1589)
OKLCHoklch(44.37% 0.186 301.5)
XYZxyz(13.5462, 7.4608, 37.2781)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA7 #6AA72B
analogous
#2B2CA7 #682BA7 #A62BA7
triadic
#682BA7 #A7682B #2BA768
tetradic
#682BA7 #A72B2C #6AA72B #2BA7A6
square
#682BA7 #A72B2C #6AA72B #2BA7A6
split-complementary
#682BA7 #A7A62B #2CA72B
monochromatic
#2B1246 #4A1E76 #682BA7 #8641CE #A572DB

Accessibility & contrast

On white

8.43
#682BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#682BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA7
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA7#FFFFFF#000000##FFFFFF
##682BA71.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682ba7;
/* rgb */ color: rgb(104, 43, 167);
/* oklch */ color: oklch(44.4% 0.186 301.5);
Tailwind
colors: {
  custom: {
    50: '#996ac2',
    500: '#682ba7',
    950: '#000000',
  },
}
SCSS
$custom: #682ba7;
$custom-light: #996ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba7",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 269.516,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.18637,
    "h": 301.5
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

primary
#682BA7
secondary
#98C26C
accent
#E24695
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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