#682D98#682D98

#682D98 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.168 H 305.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#682D98
RGBrgb(104, 45, 152)
HSLhsl(273, 54%, 39%)
HSVhsv(273, 70%, 60%)
CMYKcmyk(31.6%, 70.4%, 0%, 40.4%)
CIE-LABlab(32.00, 46.09, -47.98)
CIE-LCHlch(32.00, 66.53, 313.85°)
OKLaboklab(43.42% 0.098 -0.1362)
OKLCHoklch(43.42% 0.168 305.7)
XYZxyz(12.3136, 7.0869, 30.4189)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682D98 #5D982D
analogous
#322D98 #682D98 #982D92
triadic
#682D98 #98682D #2D9868
tetradic
#682D98 #98322D #5D982D #2D9298
square
#682D98 #98322D #5D982D #2D9298
split-complementary
#682D98 #92982D #2D9832
monochromatic
#27113A #481F69 #682D98 #883DC5 #A56CD3

Accessibility & contrast

On white

8.69
#682D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#682D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682D98
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682D98#FFFFFF#000000##FFFFFF
##682D981.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#064B96
Tritanopia (blue-blind)
#5F455F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #682d98;
/* rgb */ color: rgb(104, 45, 152);
/* oklch */ color: oklch(43.4% 0.168 305.7);
Tailwind
colors: {
  custom: {
    50: '#976bb7',
    500: '#682d98',
    950: '#000000',
  },
}
SCSS
$custom: #682d98;
$custom-light: #976bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#682d98",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 273.084,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43417,
    "c": 0.16777,
    "h": 305.7
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

primary
#682D98
secondary
#8CBA66
accent
#DE4A8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682D98

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

Preview Lab → · Contrast checker → · Palette generator →

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