#682791#682791

#682791 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.168 H 308.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#682791
RGBrgb(104, 39, 145)
HSLhsl(277, 58%, 36%)
HSVhsv(277, 73%, 57%)
CMYKcmyk(28.3%, 73.1%, 0%, 43.1%)
CIE-LABlab(30.49, 47.21, -46.13)
CIE-LCHlch(30.49, 66.01, 315.66°)
OKLaboklab(42.18% 0.1055 -0.1307)
OKLCHoklch(42.18% 0.168 308.9)
XYZxyz(11.5442, 6.4386, 27.4172)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682791 #509127
analogous
#332791 #682791 #912785
triadic
#682791 #916827 #279168
tetradic
#682791 #913327 #509127 #278591
square
#682791 #913327 #509127 #278591
split-complementary
#682791 #859127 #279133
monochromatic
#230D31 #451A61 #682791 #8B34C1 #A65FD4

Accessibility & contrast

On white

9.18
#682791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#682791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682791
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682791#FFFFFF#000000##FFFFFF
##6827911.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#0C498F
Tritanopia (blue-blind)
#623F59
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682791;
/* rgb */ color: rgb(104, 39, 145);
/* oklch */ color: oklch(42.2% 0.168 308.9);
Tailwind
colors: {
  custom: {
    50: '#9767b2',
    500: '#682791',
    950: '#000000',
  },
}
SCSS
$custom: #682791;
$custom-light: #9767b2;
$custom-dark: #000000;
JSON
{
  "hex": "#682791",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 276.792,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.16798,
    "h": 308.9
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#682791
secondary
#7FB95B
accent
#E14782
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682791

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

Preview Lab → · Contrast checker → · Palette generator →

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