#682298#682298

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

Color values

HEX#682298
RGBrgb(104, 34, 152)
HSLhsl(276, 63%, 36%)
HSVhsv(276, 78%, 60%)
CMYKcmyk(31.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(30.29, 50.94, -50.76)
CIE-LCHlch(30.29, 71.91, 315.10°)
OKLaboklab(42.2% 0.109 -0.1443)
OKLCHoklch(42.2% 0.181 307.1)
XYZxyz(11.9472, 6.3543, 30.2968)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682298 #529822
analogous
#2D2298 #682298 #98228D
triadic
#682298 #986822 #229868
tetradic
#682298 #982D22 #529822 #228D98
square
#682298 #982D22 #529822 #228D98
split-complementary
#682298 #8D9822 #22982D
monochromatic
#240C34 #461766 #682298 #8A2DCA #A65ADA

Accessibility & contrast

On white

9.25
#682298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#682298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682298
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682298#FFFFFF#000000##FFFFFF
##6822981.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #682298;
/* rgb */ color: rgb(104, 34, 152);
/* oklch */ color: oklch(42.2% 0.181 307.1);
Tailwind
colors: {
  custom: {
    50: '#9865b7',
    500: '#682298',
    950: '#000000',
  },
}
SCSS
$custom: #682298;
$custom-light: #9865b7;
$custom-dark: #000000;
JSON
{
  "hex": "#682298",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 275.593,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42202,
    "c": 0.18086,
    "h": 307.1
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#682298
secondary
#81BE57
accent
#E64185
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #682298

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

Preview Lab → · Contrast checker → · Palette generator →

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