#682C98#682C98

#682C98 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.169 H 305.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#682C98
RGBrgb(104, 44, 152)
HSLhsl(273, 55%, 38%)
HSVhsv(273, 71%, 60%)
CMYKcmyk(31.6%, 71.1%, 0%, 40.4%)
CIE-LABlab(31.83, 46.56, -48.26)
CIE-LCHlch(31.83, 67.06, 313.98°)
OKLaboklab(43.3% 0.0991 -0.137)
OKLCHoklch(43.3% 0.169 305.9)
XYZxyz(12.2759, 7.0115, 30.4063)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C98 #5C982C
analogous
#322C98 #682C98 #982C92
triadic
#682C98 #98682C #2C9868
tetradic
#682C98 #98322C #5C982C #2C9298
square
#682C98 #98322C #5C982C #2C9298
split-complementary
#682C98 #92982C #2C9832
monochromatic
#271139 #481E69 #682C98 #883BC6 #A56AD4

Accessibility & contrast

On white

8.74
#682C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#682C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682C98
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C98#FFFFFF#000000##FFFFFF
##682C981.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#034B96
Tritanopia (blue-blind)
#60455F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #682c98;
/* rgb */ color: rgb(104, 44, 152);
/* oklch */ color: oklch(43.3% 0.169 305.9);
Tailwind
colors: {
  custom: {
    50: '#976ab7',
    500: '#682c98',
    950: '#000000',
  },
}
SCSS
$custom: #682c98;
$custom-light: #976ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#682c98",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 273.333,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43295,
    "c": 0.16906,
    "h": 305.9
  },
  "luminance": 0.07011
}

Semantic roles & 50–950 ramp

primary
#682C98
secondary
#8BBB65
accent
#DE498C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682C98

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

Preview Lab → · Contrast checker → · Palette generator →

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