#682FB6#682FB6

#682FB6 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.198 H 297.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#682FB6
RGBrgb(104, 47, 182)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 74%, 71%)
CMYKcmyk(42.9%, 74.2%, 0%, 28.6%)
CIE-LABlab(34.71, 52.63, -61.61)
CIE-LCHlch(34.71, 81.03, 310.50°)
OKLaboklab(46.08% 0.0903 -0.1763)
OKLCHoklch(46.08% 0.198 297.1)
XYZxyz(15.1667, 8.3532, 45.0601)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB6 #7DB62F
analogous
#2F3AB6 #682FB6 #AB2FB6
triadic
#682FB6 #B6682F #2FB668
tetradic
#682FB6 #B62F3A #7DB62F #2FB6AB
square
#682FB6 #B62F3A #7DB62F #2FB6AB
split-complementary
#682FB6 #B6AB2F #3AB62F
monochromatic
#301655 #4C2285 #682FB6 #8750D2 #A881DE

Accessibility & contrast

On white

7.86
#682FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#682FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB6
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB6#FFFFFF#000000##FFFFFF
##682FB61.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#545270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #682fb6;
/* rgb */ color: rgb(104, 47, 182);
/* oklch */ color: oklch(46.1% 0.198 297.1);
Tailwind
colors: {
  custom: {
    50: '#9a6dcd',
    500: '#682fb6',
    950: '#000000',
  },
}
SCSS
$custom: #682fb6;
$custom-light: #9a6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb6",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 265.333,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.19805,
    "h": 297.1
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#682FB6
secondary
#A6C779
accent
#E246A0
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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