#682F9B#682F9B

#682F9B is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.168 H 304.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#682F9B
RGBrgb(104, 47, 155)
HSLhsl(272, 53%, 40%)
HSVhsv(272, 70%, 61%)
CMYKcmyk(32.9%, 69.7%, 0%, 39.2%)
CIE-LABlab(32.57, 45.84, -48.88)
CIE-LCHlch(32.57, 67.02, 313.16°)
OKLaboklab(43.9% 0.0953 -0.1389)
OKLCHoklch(43.9% 0.168 304.5)
XYZxyz(12.6405, 7.3427, 31.7553)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F9B #629B2F
analogous
#322F9B #682F9B #9B2F98
triadic
#682F9B #9B682F #2F9B68
tetradic
#682F9B #9B322F #629B2F #2F989B
square
#682F9B #9B322F #629B2F #2F989B
split-complementary
#682F9B #989B2F #2F9B32
monochromatic
#29133D #48216C #682F9B #8742C6 #A571D4

Accessibility & contrast

On white

8.51
#682F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#682F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F9B
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F9B#FFFFFF#000000##FFFFFF
##682F9B1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#024D99
Tritanopia (blue-blind)
#5E4861
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682f9b;
/* rgb */ color: rgb(104, 47, 155);
/* oklch */ color: oklch(43.9% 0.168 304.5);
Tailwind
colors: {
  custom: {
    50: '#976cb9',
    500: '#682f9b',
    950: '#000000',
  },
}
SCSS
$custom: #682f9b;
$custom-light: #976cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#682f9b",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 271.667,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43895,
    "c": 0.16844,
    "h": 304.5
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#682F9B
secondary
#91BB6A
accent
#DD4B90
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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