#682FA7#682FA7

#682FA7 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.182 H 300.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#682FA7
RGBrgb(104, 47, 167)
HSLhsl(269, 56%, 42%)
HSVhsv(269, 72%, 65%)
CMYKcmyk(37.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(33.49, 48.83, -54.65)
CIE-LCHlch(33.49, 73.29, 311.78°)
OKLaboklab(44.84% 0.0934 -0.1558)
OKLCHoklch(44.84% 0.182 300.9)
XYZxyz(13.6988, 7.7660, 37.3290)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FA7 #6EA72F
analogous
#2F32A7 #682FA7 #A42FA7
triadic
#682FA7 #A7682F #2FA768
tetradic
#682FA7 #A72F32 #6EA72F #2FA7A4
square
#682FA7 #A72F32 #6EA72F #2FA7A4
split-complementary
#682FA7 #A7A42F #32A72F
monochromatic
#2D1447 #4A2277 #682FA7 #8648CB #A678D9

Accessibility & contrast

On white

8.22
#682FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#682FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FA7
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FA7#FFFFFF#000000##FFFFFF
##682FA71.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#5A4C68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682fa7;
/* rgb */ color: rgb(104, 47, 167);
/* oklch */ color: oklch(44.8% 0.182 300.9);
Tailwind
colors: {
  custom: {
    50: '#996cc2',
    500: '#682fa7',
    950: '#000000',
  },
}
SCSS
$custom: #682fa7;
$custom-light: #996cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#682fa7",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 268.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44836,
    "c": 0.18167,
    "h": 300.9
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#682FA7
secondary
#9BC171
accent
#DF4898
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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