#682FAB#682FAB

#682FAB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.186 H 299.9°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#682FAB
RGBrgb(104, 47, 171)
HSLhsl(268, 57%, 43%)
HSVhsv(268, 73%, 67%)
CMYKcmyk(39.2%, 72.5%, 0%, 32.9%)
CIE-LABlab(33.81, 49.84, -56.53)
CIE-LCHlch(33.81, 75.36, 311.40°)
OKLaboklab(45.16% 0.0926 -0.1614)
OKLCHoklch(45.16% 0.186 299.9)
XYZxyz(14.0743, 7.9162, 39.3067)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FAB #72AB2F
analogous
#2F34AB #682FAB #A62FAB
triadic
#682FAB #AB682F #2FAB68
tetradic
#682FAB #AB2F34 #72AB2F #2FABA6
square
#682FAB #AB2F34 #72AB2F #2FABA6
split-complementary
#682FAB #ABA62F #34AB2F
monochromatic
#2E154B #4B227B #682FAB #864ACD #A67ADA

Accessibility & contrast

On white

8.13
#682FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682FAB
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FAB#FFFFFF#000000##FFFFFF
##682FAB1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#594E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682fab;
/* rgb */ color: rgb(104, 47, 171);
/* oklch */ color: oklch(45.2% 0.186 299.9);
Tailwind
colors: {
  custom: {
    50: '#996dc5',
    500: '#682fab',
    950: '#000000',
  },
}
SCSS
$custom: #682fab;
$custom-light: #996dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#682fab",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 267.581,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4516,
    "c": 0.18606,
    "h": 299.9
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#682FAB
secondary
#9EC373
accent
#E0489A
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #682FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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