#682DAF#682DAF

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

Color values

HEX#682DAF
RGBrgb(104, 45, 175)
HSLhsl(267, 59%, 43%)
HSVhsv(267, 74%, 69%)
CMYKcmyk(40.6%, 74.3%, 0%, 31.4%)
CIE-LABlab(33.80, 51.77, -58.93)
CIE-LCHlch(33.80, 78.44, 311.30°)
OKLaboklab(45.26% 0.0937 -0.1684)
OKLCHoklch(45.26% 0.193 299.1)
XYZxyz(14.3832, 7.9148, 41.3191)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682DAF #74AF2D
analogous
#2D33AF #682DAF #A92DAF
triadic
#682DAF #AF682D #2DAF68
tetradic
#682DAF #AF2D33 #74AF2D #2DAFA9
square
#682DAF #AF2D33 #74AF2D #2DAFA9
split-complementary
#682DAF #AFA92D #33AF2D
monochromatic
#2E144E #4B207E #682DAF #8649D0 #A77ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##682DAF#FFFFFF#000000##FFFFFF
##682DAF1.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)
#004FB3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#574E6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682daf;
/* rgb */ color: rgb(104, 45, 175);
/* oklch */ color: oklch(45.3% 0.193 299.1);
Tailwind
colors: {
  custom: {
    50: '#9a6cc8',
    500: '#682daf',
    950: '#000000',
  },
}
SCSS
$custom: #682daf;
$custom-light: #9a6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#682daf",
  "rgb": {
    "r": 104,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 267.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45259,
    "c": 0.19269,
    "h": 299.1
  },
  "luminance": 0.07915
}

Semantic roles & 50–950 ramp

primary
#682DAF
secondary
#A0C573
accent
#E2469B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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