#682398#682398

#682398 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.180 H 307.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#682398
RGBrgb(104, 35, 152)
HSLhsl(275, 63%, 37%)
HSVhsv(275, 77%, 60%)
CMYKcmyk(31.6%, 77%, 0%, 40.4%)
CIE-LABlab(30.43, 50.54, -50.53)
CIE-LCHlch(30.43, 71.47, 315.00°)
OKLaboklab(42.3% 0.1081 -0.1436)
OKLCHoklch(42.3% 0.18 307)
XYZxyz(11.9762, 6.4123, 30.3064)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682398 #539823
analogous
#2E2398 #682398 #98238E
triadic
#682398 #986823 #239868
tetradic
#682398 #982E23 #539823 #238E98
square
#682398 #982E23 #539823 #238E98
split-complementary
#682398 #8E9823 #23982E
monochromatic
#240C35 #461866 #682398 #8A2ECA #A65CD9

Accessibility & contrast

On white

9.20
#682398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #682398
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682398#FFFFFF#000000##FFFFFF
##6823981.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682398;
/* rgb */ color: rgb(104, 35, 152);
/* oklch */ color: oklch(42.3% 0.180 307.0);
Tailwind
colors: {
  custom: {
    50: '#9866b7',
    500: '#682398',
    950: '#000000',
  },
}
SCSS
$custom: #682398;
$custom-light: #9866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682398",
  "rgb": {
    "r": 104,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 275.385,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42301,
    "c": 0.17979,
    "h": 307
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#682398
secondary
#82BE59
accent
#E64285
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682398

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

Preview Lab → · Contrast checker → · Palette generator →

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