#682BB2#682BB2

#682BB2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.198 H 298.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#682BB2
RGBrgb(104, 43, 178)
HSLhsl(267, 61%, 43%)
HSVhsv(267, 76%, 70%)
CMYKcmyk(41.6%, 75.8%, 0%, 30.2%)
CIE-LABlab(33.74, 53.41, -60.82)
CIE-LCHlch(33.74, 80.94, 311.29°)
OKLaboklab(45.29% 0.0948 -0.1739)
OKLCHoklch(45.29% 0.198 298.6)
XYZxyz(14.6066, 7.8849, 42.8632)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BB2 #75B22B
analogous
#2B31B2 #682BB2 #AB2BB2
triadic
#682BB2 #B2682B #2BB268
tetradic
#682BB2 #B22B31 #75B22B #2BB2AB
square
#682BB2 #B22B31 #75B22B #2BB2AB
split-complementary
#682BB2 #B2AB2B #31B22B
monochromatic
#2E134F #4B1F81 #682BB2 #8648D3 #A779DF

Accessibility & contrast

On white

8.15
#682BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#682BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BB2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BB2#FFFFFF#000000##FFFFFF
##682BB21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#564F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682bb2;
/* rgb */ color: rgb(104, 43, 178);
/* oklch */ color: oklch(45.3% 0.198 298.6);
Tailwind
colors: {
  custom: {
    50: '#9a6bca',
    500: '#682bb2',
    950: '#000000',
  },
}
SCSS
$custom: #682bb2;
$custom-light: #9a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#682bb2",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 267.111,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45292,
    "c": 0.19806,
    "h": 298.6
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#682BB2
secondary
#A0C772
accent
#E4449C
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #682BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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