#682CB4#682CB4

#682CB4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.6% C 0.199 H 298.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#682CB4
RGBrgb(104, 44, 180)
HSLhsl(266, 61%, 44%)
HSVhsv(266, 76%, 71%)
CMYKcmyk(42.2%, 75.6%, 0%, 29.4%)
CIE-LABlab(34.06, 53.47, -61.48)
CIE-LCHlch(34.06, 81.48, 311.02°)
OKLaboklab(45.57% 0.0934 -0.1759)
OKLCHoklch(45.57% 0.199 298)
XYZxyz(14.8457, 8.0395, 43.9408)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CB4 #78B42C
analogous
#2C34B4 #682CB4 #AC2CB4
triadic
#682CB4 #B4682C #2CB468
tetradic
#682CB4 #B42C34 #78B42C #2CB4AC
square
#682CB4 #B42C34 #78B42C #2CB4AC
split-complementary
#682CB4 #B4AC2C #34B42C
monochromatic
#2F1452 #4C2083 #682CB4 #874AD3 #A77CDF

Accessibility & contrast

On white

8.05
#682CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682CB4
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CB4#FFFFFF#000000##FFFFFF
##682CB41.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#55506E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682cb4;
/* rgb */ color: rgb(104, 44, 180);
/* oklch */ color: oklch(45.6% 0.199 298.0);
Tailwind
colors: {
  custom: {
    50: '#9a6bcb',
    500: '#682cb4',
    950: '#000000',
  },
}
SCSS
$custom: #682cb4;
$custom-light: #9a6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#682cb4",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 266.471,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.19913,
    "h": 298
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#682CB4
secondary
#A3C775
accent
#E4449D
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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