#682188#682188

#682188 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.166 H 312.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#682188
RGBrgb(104, 33, 136)
HSLhsl(281, 61%, 33%)
HSVhsv(281, 76%, 53%)
CMYKcmyk(23.5%, 75.7%, 0%, 46.7%)
CIE-LABlab(28.92, 47.76, -43.10)
CIE-LCHlch(28.92, 64.33, 317.94°)
OKLaboklab(40.85% 0.113 -0.1218)
OKLCHoklch(40.85% 0.166 312.9)
XYZxyz(10.6959, 5.8087, 23.8455)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682188 #418821
analogous
#342188 #682188 #882174
triadic
#682188 #886821 #218868
tetradic
#682188 #883421 #418821 #217488
square
#682188 #883421 #418821 #217488
split-complementary
#682188 #748821 #218834
monochromatic
#1D0925 #421557 #682188 #8E2DB9 #AB4FD4

Accessibility & contrast

On white

9.72
#682188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#682188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682188
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682188#FFFFFF#000000##FFFFFF
##6821881.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#164686
Tritanopia (blue-blind)
#643853
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #682188;
/* rgb */ color: rgb(104, 33, 136);
/* oklch */ color: oklch(40.9% 0.166 312.9);
Tailwind
colors: {
  custom: {
    50: '#9764ab',
    500: '#682188',
    950: '#000000',
  },
}
SCSS
$custom: #682188;
$custom-light: #9764ab;
$custom-dark: #000000;
JSON
{
  "hex": "#682188",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 281.359,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40854,
    "c": 0.16616,
    "h": 312.9
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#682188
secondary
#6EB84D
accent
#E44476
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #682188

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

Preview Lab → · Contrast checker → · Palette generator →

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