#682CA1#682CA1

#682CA1 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.179 H 303.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#682CA1
RGBrgb(104, 44, 161)
HSLhsl(271, 57%, 40%)
HSVhsv(271, 73%, 63%)
CMYKcmyk(35.4%, 72.7%, 0%, 36.9%)
CIE-LABlab(32.52, 48.75, -52.61)
CIE-LCHlch(32.52, 71.73, 312.82°)
OKLaboklab(44% 0.0976 -0.1498)
OKLCHoklch(44% 0.179 303.1)
XYZxyz(13.0411, 7.3176, 34.4367)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CA1 #65A12C
analogous
#2D2CA1 #682CA1 #A12C9F
triadic
#682CA1 #A1682C #2CA168
tetradic
#682CA1 #A12D2C #65A12C #2C9FA1
square
#682CA1 #A12D2C #65A12C #2C9FA1
split-complementary
#682CA1 #9FA12C #2CA12D
monochromatic
#2A1241 #491F71 #682CA1 #8740CB #A570D8

Accessibility & contrast

On white

8.52
#682CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#682CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682CA1
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CA1#FFFFFF#000000##FFFFFF
##682CA11.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#5C4864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682ca1;
/* rgb */ color: rgb(104, 44, 161);
/* oklch */ color: oklch(44.0% 0.179 303.1);
Tailwind
colors: {
  custom: {
    50: '#986bbe',
    500: '#682ca1',
    950: '#000000',
  },
}
SCSS
$custom: #682ca1;
$custom-light: #986bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#682ca1",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 270.769,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43999,
    "c": 0.17878,
    "h": 303.1
  },
  "luminance": 0.07318
}

Semantic roles & 50–950 ramp

primary
#682CA1
secondary
#93BF6A
accent
#E04792
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #682CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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