#682EB1#682EB1

#682EB1 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.194 H 298.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#682EB1
RGBrgb(104, 46, 177)
HSLhsl(267, 59%, 44%)
HSVhsv(267, 74%, 69%)
CMYKcmyk(41.2%, 74%, 0%, 30.6%)
CIE-LABlab(34.13, 51.82, -59.59)
CIE-LCHlch(34.13, 78.97, 311.01°)
OKLaboklab(45.54% 0.0923 -0.1703)
OKLCHoklch(45.54% 0.194 298.5)
XYZxyz(14.6197, 8.0712, 42.3741)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EB1 #77B12E
analogous
#2E35B1 #682EB1 #A92EB1
triadic
#682EB1 #B1682E #2EB168
tetradic
#682EB1 #B12E35 #77B12E #2EB1A9
square
#682EB1 #B12E35 #77B12E #2EB1A9
split-complementary
#682EB1 #B1A92E #35B12E
monochromatic
#2F1550 #4B2180 #682EB1 #874CD0 #A77CDD

Accessibility & contrast

On white

8.03
#682EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#682EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EB1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EB1#FFFFFF#000000##FFFFFF
##682EB11.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#56506D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682eb1;
/* rgb */ color: rgb(104, 46, 177);
/* oklch */ color: oklch(45.5% 0.194 298.5);
Tailwind
colors: {
  custom: {
    50: '#9a6cc9',
    500: '#682eb1',
    950: '#000000',
  },
}
SCSS
$custom: #682eb1;
$custom-light: #9a6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#682eb1",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 266.565,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.19374,
    "h": 298.5
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#682EB1
secondary
#A2C675
accent
#E2469D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682EB1

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

Preview Lab → · Contrast checker → · Palette generator →

#682EB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva