#682DB5#682DB5

#682DB5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.199 H 297.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#682DB5
RGBrgb(104, 45, 181)
HSLhsl(266, 60%, 44%)
HSVhsv(266, 75%, 71%)
CMYKcmyk(42.5%, 75.1%, 0%, 29%)
CIE-LABlab(34.31, 53.28, -61.68)
CIE-LCHlch(34.31, 81.51, 310.82°)
OKLaboklab(45.77% 0.0923 -0.1765)
OKLCHoklch(45.77% 0.199 297.6)
XYZxyz(14.9856, 8.1558, 44.4918)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DB5 #7AB52D
analogous
#2D36B5 #682DB5 #AC2DB5
triadic
#682DB5 #B5682D #2DB568
tetradic
#682DB5 #B52D36 #7AB52D #2DB5AC
square
#682DB5 #B52D36 #7AB52D #2DB5AC
split-complementary
#682DB5 #B5AC2D #36B52D
monochromatic
#301553 #4C2184 #682DB5 #874DD3 #A87EDF

Accessibility & contrast

On white

7.98
#682DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#682DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682DB5
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682DB5#FFFFFF#000000##FFFFFF
##682DB51.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#54516F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682db5;
/* rgb */ color: rgb(104, 45, 181);
/* oklch */ color: oklch(45.8% 0.199 297.6);
Tailwind
colors: {
  custom: {
    50: '#9a6ccc',
    500: '#682db5',
    950: '#000000',
  },
}
SCSS
$custom: #682db5;
$custom-light: #9a6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#682db5",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 266.029,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45766,
    "c": 0.19914,
    "h": 297.6
  },
  "luminance": 0.08156
}

Semantic roles & 50–950 ramp

primary
#682DB5
secondary
#A4C776
accent
#E3449E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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