#682EA8#682EA8

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

Color values

HEX#682EA8
RGBrgb(104, 46, 168)
HSLhsl(269, 57%, 42%)
HSVhsv(269, 73%, 66%)
CMYKcmyk(38.1%, 72.6%, 0%, 34.1%)
CIE-LABlab(33.40, 49.55, -55.39)
CIE-LCHlch(33.40, 74.32, 311.81°)
OKLaboklab(44.8% 0.0942 -0.158)
OKLCHoklch(44.8% 0.184 300.8)
XYZxyz(13.7521, 7.7241, 37.8046)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EA8 #6EA82E
analogous
#2E31A8 #682EA8 #A52EA8
triadic
#682EA8 #A8682E #2EA868
tetradic
#682EA8 #A82E31 #6EA82E #2EA8A5
square
#682EA8 #A82E31 #6EA82E #2EA8A5
split-complementary
#682EA8 #A8A52E #31A82E
monochromatic
#2D1448 #4A2178 #682EA8 #8647CD #A677DA

Accessibility & contrast

On white

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

On black

2.54
#682EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##682EA8#FFFFFF#000000##FFFFFF
##682EA81.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682ea8;
/* rgb */ color: rgb(104, 46, 168);
/* oklch */ color: oklch(44.8% 0.184 300.8);
Tailwind
colors: {
  custom: {
    50: '#996cc3',
    500: '#682ea8',
    950: '#000000',
  },
}
SCSS
$custom: #682ea8;
$custom-light: #996cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#682ea8",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 268.525,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44797,
    "c": 0.18396,
    "h": 300.8
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#682EA8
secondary
#9BC270
accent
#E04898
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #682EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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