#682BAF#682BAF

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

Color values

HEX#682BAF
RGBrgb(104, 43, 175)
HSLhsl(268, 61%, 43%)
HSVhsv(268, 75%, 69%)
CMYKcmyk(40.6%, 75.4%, 0%, 31.4%)
CIE-LABlab(33.49, 52.66, -59.44)
CIE-LCHlch(33.49, 79.41, 311.54°)
OKLaboklab(45.04% 0.0955 -0.1699)
OKLCHoklch(45.04% 0.195 299.3)
XYZxyz(14.3087, 7.7658, 41.2942)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682BAF #72AF2B
analogous
#2B30AF #682BAF #AA2BAF
triadic
#682BAF #AF682B #2BAF68
tetradic
#682BAF #AF2B30 #72AF2B #2BAFAA
square
#682BAF #AF2B30 #72AF2B #2BAFAA
split-complementary
#682BAF #AFAA2B #30AF2B
monochromatic
#2E134D #4B1F7E #682BAF #8646D1 #A677DE

Accessibility & contrast

On white

8.22
#682BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#682BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682BAF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682BAF#FFFFFF#000000##FFFFFF
##682BAF1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#574D6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #682baf;
/* rgb */ color: rgb(104, 43, 175);
/* oklch */ color: oklch(45.0% 0.195 299.3);
Tailwind
colors: {
  custom: {
    50: '#9a6bc8',
    500: '#682baf',
    950: '#000000',
  },
}
SCSS
$custom: #682baf;
$custom-light: #9a6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#682baf",
  "rgb": {
    "r": 104,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 267.727,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45037,
    "c": 0.19488,
    "h": 299.3
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#682BAF
secondary
#9EC570
accent
#E4449A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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