#682EAB#682EAB

#682EAB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.187 H 300.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#682EAB
RGBrgb(104, 46, 171)
HSLhsl(268, 58%, 43%)
HSVhsv(268, 73%, 67%)
CMYKcmyk(39.2%, 73.1%, 0%, 32.9%)
CIE-LABlab(33.64, 50.30, -56.80)
CIE-LCHlch(33.64, 75.88, 311.53°)
OKLaboklab(45.04% 0.0936 -0.1621)
OKLCHoklch(45.04% 0.187 300)
XYZxyz(14.0348, 7.8372, 39.2935)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682EAB #71AB2E
analogous
#2E32AB #682EAB #A72EAB
triadic
#682EAB #AB682E #2EAB68
tetradic
#682EAB #AB2E32 #71AB2E #2EABA7
square
#682EAB #AB2E32 #71AB2E #2EABA7
split-complementary
#682EAB #ABA72E #32AB2E
monochromatic
#2D144B #4B217B #682EAB #8648CE #A679DB

Accessibility & contrast

On white

8.18
#682EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#682EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682EAB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682EAB#FFFFFF#000000##FFFFFF
##682EAB1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682eab;
/* rgb */ color: rgb(104, 46, 171);
/* oklch */ color: oklch(45.0% 0.187 300.0);
Tailwind
colors: {
  custom: {
    50: '#996cc5',
    500: '#682eab',
    950: '#000000',
  },
}
SCSS
$custom: #682eab;
$custom-light: #996cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#682eab",
  "rgb": {
    "r": 104,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 267.84,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45042,
    "c": 0.18723,
    "h": 300
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

primary
#682EAB
secondary
#9DC372
accent
#E14799
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #682EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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