#682F9E#682F9E

#682F9E is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.172 H 303.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#682F9E
RGBrgb(104, 47, 158)
HSLhsl(271, 54%, 40%)
HSVhsv(271, 70%, 62%)
CMYKcmyk(34.2%, 70.3%, 0%, 38%)
CIE-LABlab(32.80, 46.59, -50.34)
CIE-LCHlch(32.80, 68.59, 312.78°)
OKLaboklab(44.13% 0.0949 -0.1432)
OKLCHoklch(44.13% 0.172 303.5)
XYZxyz(12.8956, 7.4447, 33.0987)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F9E #659E2F
analogous
#312F9E #682F9E #9E2F9C
triadic
#682F9E #9E682F #2F9E68
tetradic
#682F9E #9E312F #659E2F #2F9C9E
square
#682F9E #9E312F #659E2F #2F9C9E
split-complementary
#682F9E #9C9E2F #2F9E31
monochromatic
#2A1340 #49216F #682F9E #8743C7 #A572D5

Accessibility & contrast

On white

8.44
#682F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#682F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F9E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F9E#FFFFFF#000000##FFFFFF
##682F9E1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682f9e;
/* rgb */ color: rgb(104, 47, 158);
/* oklch */ color: oklch(44.1% 0.172 303.5);
Tailwind
colors: {
  custom: {
    50: '#986cbb',
    500: '#682f9e',
    950: '#000000',
  },
}
SCSS
$custom: #682f9e;
$custom-light: #986cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#682f9e",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 270.811,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44126,
    "c": 0.17176,
    "h": 303.5
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#682F9E
secondary
#93BD6C
accent
#DE4A92
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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