#682BA4#682BA4

#682BA4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.183 H 302.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#682BA4
RGBrgb(104, 43, 164)
HSLhsl(270, 58%, 41%)
HSVhsv(270, 74%, 64%)
CMYKcmyk(36.6%, 73.8%, 0%, 35.7%)
CIE-LABlab(32.59, 49.95, -54.30)
CIE-LCHlch(32.59, 73.78, 312.61°)
OKLaboklab(44.13% 0.098 -0.1548)
OKLCHoklch(44.13% 0.183 302.3)
XYZxyz(13.2720, 7.3511, 35.8345)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BA4 #67A42B
analogous
#2B2BA4 #682BA4 #A42BA3
triadic
#682BA4 #A4682B #2BA468
tetradic
#682BA4 #A42B2B #67A42B #2BA3A4
square
#682BA4 #A42B2B #67A42B #2BA3A4
split-complementary
#682BA4 #A3A42B #2BA42B
monochromatic
#2B1243 #491E74 #682BA4 #873FCD #A570D9

Accessibility & contrast

On white

8.50
#682BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#682BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BA4
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BA4#FFFFFF#000000##FFFFFF
##682BA41.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#5B4965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #682ba4;
/* rgb */ color: rgb(104, 43, 164);
/* oklch */ color: oklch(44.1% 0.183 302.3);
Tailwind
colors: {
  custom: {
    50: '#996ac0',
    500: '#682ba4',
    950: '#000000',
  },
}
SCSS
$custom: #682ba4;
$custom-light: #996ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#682ba4",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 270.248,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44125,
    "c": 0.18317,
    "h": 302.3
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#682BA4
secondary
#95C16A
accent
#E24693
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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