#682BB1#682BB1

#682BB1 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.2% C 0.197 H 298.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#682BB1
RGBrgb(104, 43, 177)
HSLhsl(267, 61%, 43%)
HSVhsv(267, 76%, 69%)
CMYKcmyk(41.2%, 75.7%, 0%, 30.6%)
CIE-LABlab(33.66, 53.16, -60.36)
CIE-LCHlch(33.66, 80.43, 311.37°)
OKLaboklab(45.21% 0.095 -0.1726)
OKLCHoklch(45.21% 0.197 298.8)
XYZxyz(14.5066, 7.8449, 42.3364)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BB1 #74B12B
analogous
#2B31B1 #682BB1 #AB2BB1
triadic
#682BB1 #B1682B #2BB168
tetradic
#682BB1 #B12B31 #74B12B #2BB1AB
square
#682BB1 #B12B31 #74B12B #2BB1AB
split-complementary
#682BB1 #B1AB2B #31B12B
monochromatic
#2E134F #4B1F80 #682BB1 #8647D2 #A778DE

Accessibility & contrast

On white

8.17
#682BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#682BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BB1
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BB1#FFFFFF#000000##FFFFFF
##682BB11.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#564E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682bb1;
/* rgb */ color: rgb(104, 43, 177);
/* oklch */ color: oklch(45.2% 0.197 298.8);
Tailwind
colors: {
  custom: {
    50: '#9a6bc9',
    500: '#682bb1',
    950: '#000000',
  },
}
SCSS
$custom: #682bb1;
$custom-light: #9a6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#682bb1",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 267.313,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.197,
    "h": 298.8
  },
  "luminance": 0.07845
}

Semantic roles & 50–950 ramp

primary
#682BB1
secondary
#A0C672
accent
#E4449B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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