#682F9D#682F9D

#682F9D is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.171 H 303.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#682F9D
RGBrgb(104, 47, 157)
HSLhsl(271, 54%, 40%)
HSVhsv(271, 70%, 62%)
CMYKcmyk(33.8%, 70.1%, 0%, 38.4%)
CIE-LABlab(32.72, 46.34, -49.86)
CIE-LCHlch(32.72, 68.06, 312.90°)
OKLaboklab(44.05% 0.0951 -0.1417)
OKLCHoklch(44.05% 0.171 303.8)
XYZxyz(12.8098, 7.4104, 32.6473)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F9D #649D2F
analogous
#312F9D #682F9D #9D2F9B
triadic
#682F9D #9D682F #2F9D68
tetradic
#682F9D #9D312F #649D2F #2F9B9D
square
#682F9D #9D312F #649D2F #2F9B9D
split-complementary
#682F9D #9B9D2F #2F9D31
monochromatic
#2A133F #49216E #682F9D #8743C7 #A572D5

Accessibility & contrast

On white

8.46
#682F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#682F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F9D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F9D#FFFFFF#000000##FFFFFF
##682F9D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#5E4862
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682f9d;
/* rgb */ color: rgb(104, 47, 157);
/* oklch */ color: oklch(44.0% 0.171 303.8);
Tailwind
colors: {
  custom: {
    50: '#986cbb',
    500: '#682f9d',
    950: '#000000',
  },
}
SCSS
$custom: #682f9d;
$custom-light: #986cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#682f9d",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 271.091,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.17065,
    "h": 303.8
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#682F9D
secondary
#92BC6B
accent
#DD4B91
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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