#682FB8#682FB8

#682FB8 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.200 H 296.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#682FB8
RGBrgb(104, 47, 184)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 74%, 72%)
CMYKcmyk(43.5%, 74.5%, 0%, 27.8%)
CIE-LABlab(34.88, 53.14, -62.52)
CIE-LCHlch(34.88, 82.06, 310.36°)
OKLaboklab(46.25% 0.0898 -0.179)
OKLCHoklch(46.25% 0.2 296.6)
XYZxyz(15.3749, 8.4365, 46.1565)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB8 #7FB82F
analogous
#2F3AB8 #682FB8 #AD2FB8
triadic
#682FB8 #B8682F #2FB868
tetradic
#682FB8 #B82F3A #7FB82F #2FB8AD
square
#682FB8 #B82F3A #7FB82F #2FB8AD
split-complementary
#682FB8 #B8AD2F #3AB82F
monochromatic
#311657 #4C2387 #682FB8 #8752D3 #A982DF

Accessibility & contrast

On white

7.81
#682FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#682FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB8#FFFFFF#000000##FFFFFF
##682FB81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#535371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #682fb8;
/* rgb */ color: rgb(104, 47, 184);
/* oklch */ color: oklch(46.2% 0.200 296.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dce',
    500: '#682fb8',
    950: '#000000',
  },
}
SCSS
$custom: #682fb8;
$custom-light: #9a6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb8",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 264.964,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46246,
    "c": 0.20022,
    "h": 296.6
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #682FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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