#682F9F#682F9F

#682F9F is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.173 H 303.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#682F9F
RGBrgb(104, 47, 159)
HSLhsl(271, 54%, 40%)
HSVhsv(271, 70%, 62%)
CMYKcmyk(34.6%, 70.4%, 0%, 37.6%)
CIE-LABlab(32.87, 46.83, -50.82)
CIE-LCHlch(32.87, 69.11, 312.66°)
OKLaboklab(44.2% 0.0948 -0.1446)
OKLCHoklch(44.2% 0.173 303.2)
XYZxyz(12.9820, 7.4793, 33.5539)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F9F #669F2F
analogous
#302F9F #682F9F #9F2F9E
triadic
#682F9F #9F682F #2F9F68
tetradic
#682F9F #9F302F #669F2F #2F9E9F
square
#682F9F #9F302F #669F2F #2F9E9F
split-complementary
#682F9F #9E9F2F #2F9F30
monochromatic
#2A1341 #492170 #682F9F #8744C8 #A573D6

Accessibility & contrast

On white

8.41
#682F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#682F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F9F
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F9F#FFFFFF#000000##FFFFFF
##682F9F1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#5D4963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682f9f;
/* rgb */ color: rgb(104, 47, 159);
/* oklch */ color: oklch(44.2% 0.173 303.2);
Tailwind
colors: {
  custom: {
    50: '#986cbc',
    500: '#682f9f',
    950: '#000000',
  },
}
SCSS
$custom: #682f9f;
$custom-light: #986cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#682f9f",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 270.536,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44203,
    "c": 0.17286,
    "h": 303.2
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#682F9F
secondary
#94BD6D
accent
#DE4A93
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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