#682AAF#682AAF

#682AAF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.196 H 299.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#682AAF
RGBrgb(104, 42, 175)
HSLhsl(268, 61%, 43%)
HSVhsv(268, 76%, 69%)
CMYKcmyk(40.6%, 76%, 0%, 31.4%)
CIE-LABlab(33.34, 53.10, -59.69)
CIE-LCHlch(33.34, 79.89, 311.66°)
OKLaboklab(44.93% 0.0964 -0.1706)
OKLCHoklch(44.93% 0.196 299.5)
XYZxyz(14.2728, 7.6940, 41.2822)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682AAF #71AF2A
analogous
#2A2FAF #682AAF #AA2AAF
triadic
#682AAF #AF682A #2AAF68
tetradic
#682AAF #AF2A2F #71AF2A #2AAFAA
square
#682AAF #AF2A2F #71AF2A #2AAFAA
split-complementary
#682AAF #AFAA2A #2FAF2A
monochromatic
#2D124C #4B1E7E #682AAF #8644D2 #A675DE

Accessibility & contrast

On white

8.27
#682AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#682AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682AAF
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682AAF#FFFFFF#000000##FFFFFF
##682AAF1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#574D6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #682aaf;
/* rgb */ color: rgb(104, 42, 175);
/* oklch */ color: oklch(44.9% 0.196 299.5);
Tailwind
colors: {
  custom: {
    50: '#9a6ac8',
    500: '#682aaf',
    950: '#000000',
  },
}
SCSS
$custom: #682aaf;
$custom-light: #9a6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#682aaf",
  "rgb": {
    "r": 104,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 267.97,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4493,
    "c": 0.19595,
    "h": 299.5
  },
  "luminance": 0.07694
}

Semantic roles & 50–950 ramp

primary
#682AAF
secondary
#9DC66F
accent
#E44399
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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