#682F9A#682F9A

#682F9A is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.167 H 304.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#682F9A
RGBrgb(104, 47, 154)
HSLhsl(272, 53%, 39%)
HSVhsv(272, 69%, 60%)
CMYKcmyk(32.5%, 69.5%, 0%, 39.6%)
CIE-LABlab(32.50, 45.60, -48.39)
CIE-LCHlch(32.50, 66.49, 313.30°)
OKLaboklab(43.82% 0.0955 -0.1374)
OKLCHoklch(43.82% 0.167 304.8)
XYZxyz(12.5569, 7.3092, 31.3149)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F9A #619A2F
analogous
#332F9A #682F9A #9A2F97
triadic
#682F9A #9A682F #2F9A68
tetradic
#682F9A #9A332F #619A2F #2F979A
square
#682F9A #9A332F #619A2F #2F979A
split-complementary
#682F9A #979A2F #2F9A33
monochromatic
#29123C #48216B #682F9A #8741C5 #A570D3

Accessibility & contrast

On white

8.53
#682F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#682F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F9A
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F9A#FFFFFF#000000##FFFFFF
##682F9A1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#054C98
Tritanopia (blue-blind)
#5F4761
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682f9a;
/* rgb */ color: rgb(104, 47, 154);
/* oklch */ color: oklch(43.8% 0.167 304.8);
Tailwind
colors: {
  custom: {
    50: '#976cb8',
    500: '#682f9a',
    950: '#000000',
  },
}
SCSS
$custom: #682f9a;
$custom-light: #976cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#682f9a",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 271.963,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43819,
    "c": 0.16734,
    "h": 304.8
  },
  "luminance": 0.07309
}

Semantic roles & 50–950 ramp

primary
#682F9A
secondary
#90BB6A
accent
#DD4B8F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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