#682A98#682A98

#682A98 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.172 H 306.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#682A98
RGBrgb(104, 42, 152)
HSLhsl(274, 57%, 38%)
HSVhsv(274, 72%, 60%)
CMYKcmyk(31.6%, 72.4%, 0%, 40.4%)
CIE-LABlab(31.50, 47.50, -48.80)
CIE-LCHlch(31.50, 68.10, 314.23°)
OKLaboklab(43.06% 0.1012 -0.1386)
OKLCHoklch(43.06% 0.172 306.1)
XYZxyz(12.2031, 6.8661, 30.3821)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682A98 #5A982A
analogous
#312A98 #682A98 #982A91
triadic
#682A98 #98682A #2A9868
tetradic
#682A98 #98312A #5A982A #2A9198
square
#682A98 #98312A #5A982A #2A9198
split-complementary
#682A98 #91982A #2A9831
monochromatic
#261038 #471D68 #682A98 #8937C8 #A567D5

Accessibility & contrast

On white

8.85
#682A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#682A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682A98
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682A98#FFFFFF#000000##FFFFFF
##682A981.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#60445E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682a98;
/* rgb */ color: rgb(104, 42, 152);
/* oklch */ color: oklch(43.1% 0.172 306.1);
Tailwind
colors: {
  custom: {
    50: '#9869b7',
    500: '#682a98',
    950: '#000000',
  },
}
SCSS
$custom: #682a98;
$custom-light: #9869b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682a98",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 273.818,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.43058,
    "c": 0.17159,
    "h": 306.1
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#682A98
secondary
#89BB62
accent
#E0488A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682A98

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

Preview Lab → · Contrast checker → · Palette generator →

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