#682797#682797

#682797 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.174 H 306.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#682797
RGBrgb(104, 39, 151)
HSLhsl(275, 59%, 37%)
HSVhsv(275, 74%, 59%)
CMYKcmyk(31.1%, 74.2%, 0%, 40.8%)
CIE-LABlab(30.95, 48.61, -49.08)
CIE-LCHlch(30.95, 69.08, 314.72°)
OKLaboklab(42.64% 0.1044 -0.1394)
OKLCHoklch(42.64% 0.174 306.8)
XYZxyz(12.0192, 6.6286, 29.9184)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682797 #569727
analogous
#302797 #682797 #97278E
triadic
#682797 #976827 #279768
tetradic
#682797 #973027 #569727 #278E97
square
#682797 #973027 #569727 #278E97
split-complementary
#682797 #8E9727 #279730
monochromatic
#250E36 #471A66 #682797 #8934C8 #A662D6

Accessibility & contrast

On white

9.03
#682797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#682797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682797
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682797#FFFFFF#000000##FFFFFF
##6827971.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#60425D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682797;
/* rgb */ color: rgb(104, 39, 151);
/* oklch */ color: oklch(42.6% 0.174 306.8);
Tailwind
colors: {
  custom: {
    50: '#9868b6',
    500: '#682797',
    950: '#000000',
  },
}
SCSS
$custom: #682797;
$custom-light: #9868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#682797",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 274.821,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42641,
    "c": 0.17419,
    "h": 306.8
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#682797
secondary
#85BC5E
accent
#E24687
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682797

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

Preview Lab → · Contrast checker → · Palette generator →

#682797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva