#682F7B#682F7B

#682F7B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 41.6% C 0.133 H 316.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#682F7B
RGBrgb(104, 47, 123)
HSLhsl(285, 45%, 33%)
HSVhsv(285, 62%, 48%)
CMYKcmyk(15.4%, 61.8%, 0%, 51.8%)
CIE-LABlab(30.42, 38.31, -32.57)
CIE-LCHlch(30.42, 50.29, 319.63°)
OKLaboklab(41.65% 0.0971 -0.091)
OKLCHoklch(41.65% 0.133 316.9)
XYZxyz(10.3001, 6.4065, 19.4291)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F7B #427B2F
analogous
#422F7B #682F7B #7B2F68
triadic
#682F7B #7B682F #2F7B68
tetradic
#682F7B #7B422F #427B2F #2F687B
square
#682F7B #7B422F #427B2F #2F687B
split-complementary
#682F7B #687B2F #2F7B42
monochromatic
#1D0D22 #431E4F #682F7B #8D40A7 #AB62C3

Accessibility & contrast

On white

9.21
#682F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#682F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F7B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F7B#FFFFFF#000000##FFFFFF
##682F7B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#314979
Tritanopia (blue-blind)
#673C50
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682f7b;
/* rgb */ color: rgb(104, 47, 123);
/* oklch */ color: oklch(41.6% 0.133 316.9);
Tailwind
colors: {
  custom: {
    50: '#956ba1',
    500: '#682f7b',
    950: '#000000',
  },
}
SCSS
$custom: #682f7b;
$custom-light: #956ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#682f7b",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 285,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.41648,
    "c": 0.13313,
    "h": 316.9
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#682F7B
secondary
#6FAA5C
accent
#D45374
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #682F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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