#682FB4#682FB4

#682FB4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.196 H 297.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#682FB4
RGBrgb(104, 47, 180)
HSLhsl(266, 59%, 45%)
HSVhsv(266, 74%, 71%)
CMYKcmyk(42.2%, 73.9%, 0%, 29.4%)
CIE-LABlab(34.54, 52.12, -60.70)
CIE-LCHlch(34.54, 80.01, 310.65°)
OKLaboklab(45.91% 0.0907 -0.1736)
OKLCHoklch(45.91% 0.196 297.6)
XYZxyz(14.9615, 8.2711, 43.9794)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB4 #7BB42F
analogous
#2F39B4 #682FB4 #AA2FB4
triadic
#682FB4 #B4682F #2FB468
tetradic
#682FB4 #B42F39 #7BB42F #2FB4AA
square
#682FB4 #B42F39 #7BB42F #2FB4AA
split-complementary
#682FB4 #B4AA2F #39B42F
monochromatic
#301653 #4C2283 #682FB4 #874FD1 #A880DE

Accessibility & contrast

On white

7.91
#682FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#682FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB4#FFFFFF#000000##FFFFFF
##682FB41.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#55516F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682fb4;
/* rgb */ color: rgb(104, 47, 180);
/* oklch */ color: oklch(45.9% 0.196 297.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dcb',
    500: '#682fb4',
    950: '#000000',
  },
}
SCSS
$custom: #682fb4;
$custom-light: #9a6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb4",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 265.714,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45906,
    "c": 0.19588,
    "h": 297.6
  },
  "luminance": 0.08271
}

Semantic roles & 50–950 ramp

primary
#682FB4
secondary
#A5C778
accent
#E2469F
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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