#682796#682796

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

Color values

HEX#682796
RGBrgb(104, 39, 150)
HSLhsl(275, 59%, 37%)
HSVhsv(275, 74%, 59%)
CMYKcmyk(30.7%, 74%, 0%, 41.2%)
CIE-LABlab(30.87, 48.38, -48.59)
CIE-LCHlch(30.87, 68.57, 314.87°)
OKLaboklab(42.56% 0.1046 -0.138)
OKLCHoklch(42.56% 0.173 307.2)
XYZxyz(11.9383, 6.5963, 29.4925)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682796 #559627
analogous
#312796 #682796 #96278D
triadic
#682796 #966827 #279668
tetradic
#682796 #963127 #559627 #278D96
square
#682796 #963127 #559627 #278D96
split-complementary
#682796 #8D9627 #279631
monochromatic
#250E35 #461A65 #682796 #8A34C7 #A661D6

Accessibility & contrast

On white

9.05
#682796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#682796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682796
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682796#FFFFFF#000000##FFFFFF
##6827961.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#60415C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #682796;
/* rgb */ color: rgb(104, 39, 150);
/* oklch */ color: oklch(42.6% 0.173 307.2);
Tailwind
colors: {
  custom: {
    50: '#9868b6',
    500: '#682796',
    950: '#000000',
  },
}
SCSS
$custom: #682796;
$custom-light: #9868b6;
$custom-dark: #000000;
JSON
{
  "hex": "#682796",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 275.135,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.17316,
    "h": 307.2
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#682796
secondary
#84BC5D
accent
#E24687
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682796

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

Preview Lab → · Contrast checker → · Palette generator →

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