#682E9B#682E9B

#682E9B is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.170 H 304.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#682E9B
RGBrgb(104, 46, 155)
HSLhsl(272, 54%, 39%)
HSVhsv(272, 70%, 61%)
CMYKcmyk(32.9%, 70.3%, 0%, 39.2%)
CIE-LABlab(32.40, 46.33, -49.17)
CIE-LCHlch(32.40, 67.56, 313.30°)
OKLaboklab(43.77% 0.0964 -0.1397)
OKLCHoklch(43.77% 0.17 304.6)
XYZxyz(12.6010, 7.2637, 31.7422)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682E9B #619B2E
analogous
#322E9B #682E9B #9B2E98
triadic
#682E9B #9B682E #2E9B68
tetradic
#682E9B #9B322E #619B2E #2E989B
square
#682E9B #9B322E #619B2E #2E989B
split-complementary
#682E9B #989B2E #2E9B32
monochromatic
#29123D #48206C #682E9B #8740C6 #A56FD4

Accessibility & contrast

On white

8.56
#682E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#682E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682E9B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682E9B#FFFFFF#000000##FFFFFF
##682E9B1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#5E4761
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682e9b;
/* rgb */ color: rgb(104, 46, 155);
/* oklch */ color: oklch(43.8% 0.170 304.6);
Tailwind
colors: {
  custom: {
    50: '#986bb9',
    500: '#682e9b',
    950: '#000000',
  },
}
SCSS
$custom: #682e9b;
$custom-light: #986bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#682e9b",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 271.927,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.16975,
    "h": 304.6
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#682E9B
secondary
#90BC69
accent
#DE4A8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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