#682FB2#682FB2

#682FB2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.194 H 298.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#682FB2
RGBrgb(104, 47, 178)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 74%, 70%)
CMYKcmyk(41.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(34.38, 51.61, -59.78)
CIE-LCHlch(34.38, 78.98, 310.80°)
OKLaboklab(45.74% 0.0912 -0.1709)
OKLCHoklch(45.74% 0.194 298.1)
XYZxyz(14.7592, 8.1902, 42.9141)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FB2 #79B22F
analogous
#2F38B2 #682FB2 #AA2FB2
triadic
#682FB2 #B2682F #2FB268
tetradic
#682FB2 #B22F38 #79B22F #2FB2AA
square
#682FB2 #B22F38 #79B22F #2FB2AA
split-complementary
#682FB2 #B2AA2F #38B22F
monochromatic
#2F1551 #4C2282 #682FB2 #874ED0 #A87EDD

Accessibility & contrast

On white

7.96
#682FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#682FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FB2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FB2#FFFFFF#000000##FFFFFF
##682FB21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#56516E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #682fb2;
/* rgb */ color: rgb(104, 47, 178);
/* oklch */ color: oklch(45.7% 0.194 298.1);
Tailwind
colors: {
  custom: {
    50: '#9a6dca',
    500: '#682fb2',
    950: '#000000',
  },
}
SCSS
$custom: #682fb2;
$custom-light: #9a6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#682fb2",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 266.107,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45738,
    "c": 0.1937,
    "h": 298.1
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#682FB2
secondary
#A4C677
accent
#E1469E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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