#682BAB#682BAB

#682BAB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.191 H 300.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#682BAB
RGBrgb(104, 43, 171)
HSLhsl(269, 60%, 42%)
HSVhsv(269, 75%, 67%)
CMYKcmyk(39.2%, 74.9%, 0%, 32.9%)
CIE-LABlab(33.16, 51.67, -57.59)
CIE-LCHlch(33.16, 77.37, 311.90°)
OKLaboklab(44.7% 0.0964 -0.1644)
OKLCHoklch(44.7% 0.191 300.4)
XYZxyz(13.9217, 7.6110, 39.2558)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BAB #6EAB2B
analogous
#2B2EAB #682BAB #A82BAB
triadic
#682BAB #AB682B #2BAB68
tetradic
#682BAB #AB2B2E #6EAB2B #2BABA8
square
#682BAB #AB2B2E #6EAB2B #2BABA8
split-complementary
#682BAB #ABA82B #2EAB2B
monochromatic
#2D1249 #4A1F7A #682BAB #8643D0 #A674DC

Accessibility & contrast

On white

8.33
#682BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#682BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BAB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BAB#FFFFFF#000000##FFFFFF
##682BAB1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#594C69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #682bab;
/* rgb */ color: rgb(104, 43, 171);
/* oklch */ color: oklch(44.7% 0.191 300.4);
Tailwind
colors: {
  custom: {
    50: '#996bc5',
    500: '#682bab',
    950: '#000000',
  },
}
SCSS
$custom: #682bab;
$custom-light: #996bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#682bab",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 268.594,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44701,
    "c": 0.19063,
    "h": 300.4
  },
  "luminance": 0.07611
}

Semantic roles & 50–950 ramp

primary
#682BAB
secondary
#9BC46E
accent
#E34598
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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