#682FB3#682FB3

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

Color values

HEX#682FB3
RGBrgb(104, 47, 179)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 74%, 70%)
CMYKcmyk(41.9%, 73.7%, 0%, 29.8%)
CIE-LABlab(34.46, 51.87, -60.24)
CIE-LCHlch(34.46, 79.49, 310.73°)
OKLaboklab(45.82% 0.0909 -0.1723)
OKLCHoklch(45.82% 0.195 297.8)
XYZxyz(14.8600, 8.2305, 43.4448)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB3 #7AB32F
analogous
#2F38B3 #682FB3 #AA2FB3
triadic
#682FB3 #B3682F #2FB368
tetradic
#682FB3 #B32F38 #7AB32F #2FB3AA
square
#682FB3 #B32F38 #7AB32F #2FB3AA
split-complementary
#682FB3 #B3AA2F #38B32F
monochromatic
#301652 #4C2283 #682FB3 #874FD1 #A87FDD

Accessibility & contrast

On white

7.94
#682FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682FB3
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB3#FFFFFF#000000##FFFFFF
##682FB31.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#55516E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682fb3;
/* rgb */ color: rgb(104, 47, 179);
/* oklch */ color: oklch(45.8% 0.195 297.8);
Tailwind
colors: {
  custom: {
    50: '#9a6dcb',
    500: '#682fb3',
    950: '#000000',
  },
}
SCSS
$custom: #682fb3;
$custom-light: #9a6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb3",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 265.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45822,
    "c": 0.19479,
    "h": 297.8
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#682FB3
secondary
#A4C678
accent
#E2469E
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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