#682898#682898

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

Color values

HEX#682898
RGBrgb(104, 40, 152)
HSLhsl(274, 58%, 38%)
HSVhsv(274, 74%, 60%)
CMYKcmyk(31.6%, 73.7%, 0%, 40.4%)
CIE-LABlab(31.18, 48.41, -49.32)
CIE-LCHlch(31.18, 69.10, 314.47°)
OKLaboklab(42.83% 0.1033 -0.1401)
OKLCHoklch(42.83% 0.174 306.4)
XYZxyz(12.1340, 6.7278, 30.3590)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682898 #589828
analogous
#302898 #682898 #982890
triadic
#682898 #986828 #289868
tetradic
#682898 #983028 #589828 #289098
square
#682898 #983028 #589828 #289098
split-complementary
#682898 #909828 #289830
monochromatic
#260F37 #471B68 #682898 #8935C8 #A564D6

Accessibility & contrast

On white

8.95
#682898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#682898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682898
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682898#FFFFFF#000000##FFFFFF
##6828981.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#60425E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682898;
/* rgb */ color: rgb(104, 40, 152);
/* oklch */ color: oklch(42.8% 0.174 306.4);
Tailwind
colors: {
  custom: {
    50: '#9868b7',
    500: '#682898',
    950: '#000000',
  },
}
SCSS
$custom: #682898;
$custom-light: #9868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682898",
  "rgb": {
    "r": 104,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 274.286,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4283,
    "c": 0.17404,
    "h": 306.4
  },
  "luminance": 0.06728
}

Semantic roles & 50–950 ramp

primary
#682898
secondary
#87BC60
accent
#E24689
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682898

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

Preview Lab → · Contrast checker → · Palette generator →

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