#682FB7#682FB7

#682FB7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.199 H 296.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#682FB7
RGBrgb(104, 47, 183)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 74%, 72%)
CMYKcmyk(43.2%, 74.3%, 0%, 28.2%)
CIE-LABlab(34.79, 52.89, -62.07)
CIE-LCHlch(34.79, 81.54, 310.43°)
OKLaboklab(46.16% 0.09 -0.1776)
OKLCHoklch(46.16% 0.199 296.9)
XYZxyz(15.2704, 8.3947, 45.6064)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB7 #7EB72F
analogous
#2F3AB7 #682FB7 #AC2FB7
triadic
#682FB7 #B7682F #2FB768
tetradic
#682FB7 #B72F3A #7EB72F #2FB7AC
square
#682FB7 #B72F3A #7EB72F #2FB7AC
split-complementary
#682FB7 #B7AC2F #3AB72F
monochromatic
#311656 #4C2286 #682FB7 #8751D2 #A982DF

Accessibility & contrast

On white

7.84
#682FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#682FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB7#FFFFFF#000000##FFFFFF
##682FB71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#535371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #682fb7;
/* rgb */ color: rgb(104, 47, 183);
/* oklch */ color: oklch(46.2% 0.199 296.9);
Tailwind
colors: {
  custom: {
    50: '#9a6dce',
    500: '#682fb7',
    950: '#000000',
  },
}
SCSS
$custom: #682fb7;
$custom-light: #9a6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb7",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 265.147,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.19914,
    "h": 296.9
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#682FB7
secondary
#A7C87A
accent
#E245A1
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #682FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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