#682F78#682F78

#682F78 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.5% C 0.130 H 318.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#682F78
RGBrgb(104, 47, 120)
HSLhsl(287, 44%, 33%)
HSVhsv(287, 61%, 47%)
CMYKcmyk(13.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(30.24, 37.65, -30.97)
CIE-LCHlch(30.24, 48.75, 320.56°)
OKLaboklab(41.46% 0.097 -0.0864)
OKLCHoklch(41.46% 0.13 318.3)
XYZxyz(10.1151, 6.3326, 18.4551)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F78 #3F782F
analogous
#432F78 #682F78 #782F64
triadic
#682F78 #78682F #2F7868
tetradic
#682F78 #78432F #3F782F #2F6478
square
#682F78 #78432F #3F782F #2F6478
split-complementary
#682F78 #64782F #2F7843
monochromatic
#1C0D20 #421E4C #682F78 #8E40A4 #AC60C1

Accessibility & contrast

On white

9.27
#682F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#682F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F78
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F78#FFFFFF#000000##FFFFFF
##682F781.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D437A
Deuteranopia (green-blind)
#324976
Tritanopia (blue-blind)
#683B4F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #682f78;
/* rgb */ color: rgb(104, 47, 120);
/* oklch */ color: oklch(41.5% 0.130 318.3);
Tailwind
colors: {
  custom: {
    50: '#956b9f',
    500: '#682f78',
    950: '#000000',
  },
}
SCSS
$custom: #682f78;
$custom-light: #956b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#682f78",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 286.849,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.41459,
    "c": 0.12988,
    "h": 318.3
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#682F78
secondary
#6CA85B
accent
#D35470
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #682F78

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

Preview Lab → · Contrast checker → · Palette generator →

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