#682CAB#682CAB

#682CAB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.190 H 300.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#682CAB
RGBrgb(104, 44, 171)
HSLhsl(268, 59%, 42%)
HSVhsv(268, 74%, 67%)
CMYKcmyk(39.2%, 74.3%, 0%, 32.9%)
CIE-LABlab(33.32, 51.22, -57.33)
CIE-LCHlch(33.32, 76.88, 311.78°)
OKLaboklab(44.81% 0.0955 -0.1637)
OKLCHoklch(44.81% 0.19 300.3)
XYZxyz(13.9585, 7.6846, 39.2681)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CAB #6FAB2C
analogous
#2C30AB #682CAB #A72CAB
triadic
#682CAB #AB682C #2CAB68
tetradic
#682CAB #AB2C30 #6FAB2C #2CABA7
square
#682CAB #AB2C30 #6FAB2C #2CABA7
split-complementary
#682CAB #ABA72C #30AB2C
monochromatic
#2D134A #4A1F7A #682CAB #8645CF #A676DC

Accessibility & contrast

On white

8.28
#682CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682CAB
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682CAB#FFFFFF#000000##FFFFFF
##682CAB1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.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: #682cab;
/* rgb */ color: rgb(104, 44, 171);
/* oklch */ color: oklch(44.8% 0.190 300.3);
Tailwind
colors: {
  custom: {
    50: '#996bc5',
    500: '#682cab',
    950: '#000000',
  },
}
SCSS
$custom: #682cab;
$custom-light: #996bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#682cab",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 268.346,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44813,
    "c": 0.18952,
    "h": 300.3
  },
  "luminance": 0.07685
}

Semantic roles & 50–950 ramp

primary
#682CAB
secondary
#9CC36F
accent
#E24698
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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