#682C97#682C97

#682C97 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.168 H 306.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#682C97
RGBrgb(104, 44, 151)
HSLhsl(274, 55%, 38%)
HSVhsv(274, 71%, 59%)
CMYKcmyk(31.1%, 70.9%, 0%, 40.8%)
CIE-LABlab(31.76, 46.32, -47.77)
CIE-LCHlch(31.76, 66.54, 314.12°)
OKLaboklab(43.22% 0.0992 -0.1356)
OKLCHoklch(43.22% 0.168 306.2)
XYZxyz(12.1943, 6.9789, 29.9768)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682C97 #5B972C
analogous
#322C97 #682C97 #972C90
triadic
#682C97 #97682C #2C9768
tetradic
#682C97 #97322C #5B972C #2C9097
square
#682C97 #97322C #5B972C #2C9097
split-complementary
#682C97 #90972C #2C9732
monochromatic
#271038 #471E68 #682C97 #893AC6 #A56AD4

Accessibility & contrast

On white

8.77
#682C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#682C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682C97
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682C97#FFFFFF#000000##FFFFFF
##682C971.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#074B95
Tritanopia (blue-blind)
#60445E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #682c97;
/* rgb */ color: rgb(104, 44, 151);
/* oklch */ color: oklch(43.2% 0.168 306.2);
Tailwind
colors: {
  custom: {
    50: '#976ab6',
    500: '#682c97',
    950: '#000000',
  },
}
SCSS
$custom: #682c97;
$custom-light: #976ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#682c97",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 273.645,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43219,
    "c": 0.16798,
    "h": 306.2
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#682C97
secondary
#8ABA65
accent
#DE4A8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682C97

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

Preview Lab → · Contrast checker → · Palette generator →

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