#682278#682278

#682278 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.8% C 0.149 H 319.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#682278
RGBrgb(104, 34, 120)
HSLhsl(289, 56%, 30%)
HSVhsv(289, 72%, 47%)
CMYKcmyk(13.3%, 71.7%, 0%, 52.9%)
CIE-LABlab(27.96, 43.93, -34.59)
CIE-LCHlch(27.96, 55.91, 321.78°)
OKLaboklab(39.82% 0.1136 -0.0968)
OKLCHoklch(39.82% 0.149 319.6)
XYZxyz(9.6707, 5.4436, 18.3070)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682278 #327822
analogous
#3D2278 #682278 #78225D
triadic
#682278 #786822 #227868
tetradic
#682278 #783D22 #327822 #225D78
square
#682278 #783D22 #327822 #225D78
split-complementary
#682278 #5D7822 #22783D
monochromatic
#150719 #3F1448 #682278 #9130A8 #B349CB

Accessibility & contrast

On white

10.05
#682278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#682278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682278
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682278#FFFFFF#000000##FFFFFF
##6822781.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#294476
Tritanopia (blue-blind)
#68324A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #682278;
/* rgb */ color: rgb(104, 34, 120);
/* oklch */ color: oklch(39.8% 0.149 319.6);
Tailwind
colors: {
  custom: {
    50: '#96649f',
    500: '#682278',
    950: '#000000',
  },
}
SCSS
$custom: #682278;
$custom-light: #96649f;
$custom-dark: #000000;
JSON
{
  "hex": "#682278",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 288.837,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39815,
    "c": 0.1493,
    "h": 319.6
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#682278
secondary
#5DAB4B
accent
#DF4965
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060E
muted
#7E7A7E

Preview Lab

Preview with #682278

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

Preview Lab → · Contrast checker → · Palette generator →

#682278 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva