#682CA8#682CA8

#682CA8 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.186 H 301.1°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#682CA8
RGBrgb(104, 44, 168)
HSLhsl(269, 58%, 42%)
HSVhsv(269, 74%, 66%)
CMYKcmyk(38.1%, 73.8%, 0%, 34.1%)
CIE-LABlab(33.07, 50.48, -55.93)
CIE-LCHlch(33.07, 75.34, 312.07°)
OKLaboklab(44.57% 0.0962 -0.1596)
OKLCHoklch(44.57% 0.186 301.1)
XYZxyz(13.6758, 7.5715, 37.7791)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CA8 #6CA82C
analogous
#2C2EA8 #682CA8 #A62CA8
triadic
#682CA8 #A8682C #2CA868
tetradic
#682CA8 #A82C2E #6CA82C #2CA8A6
square
#682CA8 #A82C2E #6CA82C #2CA8A6
split-complementary
#682CA8 #A8A62C #2EA82C
monochromatic
#2C1347 #4A1F78 #682CA8 #8643CE #A674DB

Accessibility & contrast

On white

8.35
#682CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#682CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682CA8
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CA8#FFFFFF#000000##FFFFFF
##682CA81.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#5A4B68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #682ca8;
/* rgb */ color: rgb(104, 44, 168);
/* oklch */ color: oklch(44.6% 0.186 301.1);
Tailwind
colors: {
  custom: {
    50: '#996bc3',
    500: '#682ca8',
    950: '#000000',
  },
}
SCSS
$custom: #682ca8;
$custom-light: #996bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#682ca8",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 269.032,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44565,
    "c": 0.1863,
    "h": 301.1
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#682CA8
secondary
#99C26E
accent
#E24696
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #682CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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