#682CAF#682CAF

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

Color values

HEX#682CAF
RGBrgb(104, 44, 175)
HSLhsl(267, 60%, 43%)
HSVhsv(267, 75%, 69%)
CMYKcmyk(40.6%, 74.9%, 0%, 31.4%)
CIE-LABlab(33.65, 52.22, -59.19)
CIE-LCHlch(33.65, 78.93, 311.42°)
OKLaboklab(45.15% 0.0946 -0.1691)
OKLCHoklch(45.15% 0.194 299.2)
XYZxyz(14.3455, 7.8394, 41.3065)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682CAF #73AF2C
analogous
#2C31AF #682CAF #A92CAF
triadic
#682CAF #AF682C #2CAF68
tetradic
#682CAF #AF2C31 #73AF2C #2CAFA9
square
#682CAF #AF2C31 #73AF2C #2CAFA9
split-complementary
#682CAF #AFA92C #31AF2C
monochromatic
#2E134D #4B207E #682CAF #8647D1 #A678DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #682caf;
/* rgb */ color: rgb(104, 44, 175);
/* oklch */ color: oklch(45.1% 0.194 299.2);
Tailwind
colors: {
  custom: {
    50: '#9a6bc8',
    500: '#682caf',
    950: '#000000',
  },
}
SCSS
$custom: #682caf;
$custom-light: #9a6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#682caf",
  "rgb": {
    "r": 104,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 267.481,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45147,
    "c": 0.1938,
    "h": 299.2
  },
  "luminance": 0.0784
}

Semantic roles & 50–950 ramp

primary
#682CAF
secondary
#9FC572
accent
#E3459B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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