#682397#682397

#682397 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.179 H 307.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#682397
RGBrgb(104, 35, 151)
HSLhsl(276, 62%, 36%)
HSVhsv(276, 77%, 59%)
CMYKcmyk(31.1%, 76.8%, 0%, 40.8%)
CIE-LABlab(30.35, 50.31, -50.05)
CIE-LCHlch(30.35, 70.96, 315.15°)
OKLaboklab(42.22% 0.1083 -0.1422)
OKLCHoklch(42.22% 0.179 307.3)
XYZxyz(11.8947, 6.3796, 29.8769)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682397 #529723
analogous
#2E2397 #682397 #97238C
triadic
#682397 #976823 #239768
tetradic
#682397 #972E23 #529723 #238C97
square
#682397 #972E23 #529723 #238C97
split-complementary
#682397 #8C9723 #23972E
monochromatic
#240C34 #461765 #682397 #8A2FC9 #A65BD9

Accessibility & contrast

On white

9.23
#682397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#682397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682397
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682397#FFFFFF#000000##FFFFFF
##6823971.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#603F5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #682397;
/* rgb */ color: rgb(104, 35, 151);
/* oklch */ color: oklch(42.2% 0.179 307.3);
Tailwind
colors: {
  custom: {
    50: '#9866b6',
    500: '#682397',
    950: '#000000',
  },
}
SCSS
$custom: #682397;
$custom-light: #9866b6;
$custom-dark: #000000;
JSON
{
  "hex": "#682397",
  "rgb": {
    "r": 104,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 275.69,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42221,
    "c": 0.17878,
    "h": 307.3
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#682397
secondary
#81BE58
accent
#E54284
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682397

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

Preview Lab → · Contrast checker → · Palette generator →

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