#682897#682897

#682897 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.173 H 306.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#682897
RGBrgb(104, 40, 151)
HSLhsl(275, 58%, 37%)
HSVhsv(275, 74%, 59%)
CMYKcmyk(31.1%, 73.5%, 0%, 40.8%)
CIE-LABlab(31.10, 48.17, -48.83)
CIE-LCHlch(31.10, 68.59, 314.61°)
OKLaboklab(42.75% 0.1034 -0.1387)
OKLCHoklch(42.75% 0.173 306.7)
XYZxyz(12.0524, 6.6951, 29.9295)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682897 #579728
analogous
#312897 #682897 #97288E
triadic
#682897 #976828 #289768
tetradic
#682897 #973128 #579728 #288E97
square
#682897 #973128 #579728 #288E97
split-complementary
#682897 #8E9728 #289731
monochromatic
#250E36 #471B67 #682897 #8935C7 #A564D6

Accessibility & contrast

On white

8.98
#682897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#682897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682897
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682897#FFFFFF#000000##FFFFFF
##6828971.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682897;
/* rgb */ color: rgb(104, 40, 151);
/* oklch */ color: oklch(42.8% 0.173 306.7);
Tailwind
colors: {
  custom: {
    50: '#9868b6',
    500: '#682897',
    950: '#000000',
  },
}
SCSS
$custom: #682897;
$custom-light: #9868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#682897",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 274.595,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42752,
    "c": 0.17299,
    "h": 306.7
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#682897
secondary
#86BC5F
accent
#E14688
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682897

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

Preview Lab → · Contrast checker → · Palette generator →

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