#682FAF#682FAF

#682FAF is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.190 H 298.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#682FAF
RGBrgb(104, 47, 175)
HSLhsl(267, 58%, 44%)
HSVhsv(267, 73%, 69%)
CMYKcmyk(40.6%, 73.1%, 0%, 31.4%)
CIE-LABlab(34.13, 50.85, -58.40)
CIE-LCHlch(34.13, 77.43, 311.05°)
OKLaboklab(45.49% 0.0918 -0.1668)
OKLCHoklch(45.49% 0.19 298.8)
XYZxyz(14.4613, 8.0710, 41.3451)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682FAF #76AF2F
analogous
#2F36AF #682FAF #A82FAF
triadic
#682FAF #AF682F #2FAF68
tetradic
#682FAF #AF2F36 #76AF2F #2FAFA8
square
#682FAF #AF2F36 #76AF2F #2FAFA8
split-complementary
#682FAF #AFA82F #36AF2F
monochromatic
#2F154F #4B227F #682FAF #864CCF #A77CDC

Accessibility & contrast

On white

8.03
#682FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#682FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682FAF
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682FAF#FFFFFF#000000##FFFFFF
##682FAF1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#574F6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #682faf;
/* rgb */ color: rgb(104, 47, 175);
/* oklch */ color: oklch(45.5% 0.190 298.8);
Tailwind
colors: {
  custom: {
    50: '#996dc8',
    500: '#682faf',
    950: '#000000',
  },
}
SCSS
$custom: #682faf;
$custom-light: #996dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#682faf",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 266.719,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45489,
    "c": 0.19043,
    "h": 298.8
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#682FAF
secondary
#A1C475
accent
#E1479C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #682FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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