#682FA6#682FA6

#682FA6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.181 H 301.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#682FA6
RGBrgb(104, 47, 166)
HSLhsl(269, 56%, 42%)
HSVhsv(269, 72%, 65%)
CMYKcmyk(37.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(33.41, 48.58, -54.17)
CIE-LCHlch(33.41, 72.76, 311.88°)
OKLaboklab(44.76% 0.0936 -0.1544)
OKLCHoklch(44.76% 0.181 301.2)
XYZxyz(13.6067, 7.7292, 36.8440)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FA6 #6DA62F
analogous
#2F32A6 #682FA6 #A42FA6
triadic
#682FA6 #A6682F #2FA668
tetradic
#682FA6 #A62F32 #6DA62F #2FA6A4
square
#682FA6 #A62F32 #6DA62F #2FA6A4
split-complementary
#682FA6 #A6A42F #32A62F
monochromatic
#2C1447 #4A2176 #682FA6 #8647CB #A677D8

Accessibility & contrast

On white

8.25
#682FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682FA6
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FA6#FFFFFF#000000##FFFFFF
##682FA61.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#5B4C67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682fa6;
/* rgb */ color: rgb(104, 47, 166);
/* oklch */ color: oklch(44.8% 0.181 301.2);
Tailwind
colors: {
  custom: {
    50: '#986cc1',
    500: '#682fa6',
    950: '#000000',
  },
}
SCSS
$custom: #682fa6;
$custom-light: #986cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#682fa6",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 268.739,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44755,
    "c": 0.18057,
    "h": 301.2
  },
  "luminance": 0.07729
}

Semantic roles & 50–950 ramp

primary
#682FA6
secondary
#9AC170
accent
#DF4997
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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