#682F89#682F89

#682F89 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.149 H 310.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#682F89
RGBrgb(104, 47, 137)
HSLhsl(278, 49%, 36%)
HSVhsv(278, 66%, 54%)
CMYKcmyk(24.1%, 65.7%, 0%, 46.3%)
CIE-LABlab(31.31, 41.51, -39.88)
CIE-LCHlch(31.31, 57.57, 316.15°)
OKLaboklab(42.58% 0.097 -0.1124)
OKLCHoklch(42.58% 0.149 310.8)
XYZxyz(11.2399, 6.7825, 24.3791)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F89 #50892F
analogous
#3B2F89 #682F89 #892F7D
triadic
#682F89 #89682F #2F8968
tetradic
#682F89 #893B2F #50892F #2F7D89
square
#682F89 #893B2F #50892F #2F7D89
split-complementary
#682F89 #7D892F #2F893B
monochromatic
#23102E #451F5B #682F89 #8B3FB7 #A667CB

Accessibility & contrast

On white

8.91
#682F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#682F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F89
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F89#FFFFFF#000000##FFFFFF
##682F891.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#254B87
Tritanopia (blue-blind)
#644157
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #682f89;
/* rgb */ color: rgb(104, 47, 137);
/* oklch */ color: oklch(42.6% 0.149 310.8);
Tailwind
colors: {
  custom: {
    50: '#966bac',
    500: '#682f89',
    950: '#000000',
  },
}
SCSS
$custom: #682f89;
$custom-light: #966bac;
$custom-dark: #000000;
JSON
{
  "hex": "#682f89",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 278,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42581,
    "c": 0.14851,
    "h": 310.8
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#682F89
secondary
#7FB262
accent
#D84F82
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #682F89

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

Preview Lab → · Contrast checker → · Palette generator →

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