#682498#682498

#682498 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.179 H 306.9°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#682498
RGBrgb(104, 36, 152)
HSLhsl(275, 62%, 37%)
HSVhsv(275, 76%, 60%)
CMYKcmyk(31.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(30.57, 50.13, -50.30)
CIE-LCHlch(30.57, 71.01, 314.90°)
OKLaboklab(42.4% 0.1072 -0.143)
OKLCHoklch(42.4% 0.179 306.9)
XYZxyz(12.0061, 6.4719, 30.3164)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682498 #549824
analogous
#2E2498 #682498 #98248E
triadic
#682498 #986824 #249868
tetradic
#682498 #982E24 #549824 #248E98
square
#682498 #982E24 #549824 #248E98
split-complementary
#682498 #8E9824 #24982E
monochromatic
#240D35 #461867 #682498 #8A30C9 #A65ED9

Accessibility & contrast

On white

9.15
#682498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#682498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682498
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682498#FFFFFF#000000##FFFFFF
##6824981.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#60405D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #682498;
/* rgb */ color: rgb(104, 36, 152);
/* oklch */ color: oklch(42.4% 0.179 306.9);
Tailwind
colors: {
  custom: {
    50: '#9866b7',
    500: '#682498',
    950: '#000000',
  },
}
SCSS
$custom: #682498;
$custom-light: #9866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682498",
  "rgb": {
    "r": 104,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 275.172,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42402,
    "c": 0.17868,
    "h": 306.9
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#682498
secondary
#83BE5A
accent
#E54386
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682498

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

Preview Lab → · Contrast checker → · Palette generator →

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