#682F98#682F98

#682F98 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.165 H 305.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#682F98
RGBrgb(104, 47, 152)
HSLhsl(273, 53%, 39%)
HSVhsv(273, 69%, 60%)
CMYKcmyk(31.6%, 69.1%, 0%, 40.4%)
CIE-LABlab(32.35, 45.11, -47.41)
CIE-LCHlch(32.35, 65.44, 313.57°)
OKLaboklab(43.67% 0.0957 -0.1345)
OKLCHoklch(43.67% 0.165 305.4)
XYZxyz(12.3917, 7.2432, 30.4449)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#682F98 #5F982F
analogous
#332F98 #682F98 #982F94
triadic
#682F98 #98682F #2F9868
tetradic
#682F98 #98332F #5F982F #2F9498
square
#682F98 #98332F #5F982F #2F9498
split-complementary
#682F98 #94982F #2F9833
monochromatic
#28123B #482169 #682F98 #8840C4 #A56FD2

Accessibility & contrast

On white

8.58
#682F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#682F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #682F98
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##682F98#FFFFFF#000000##FFFFFF
##682F981.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#0C4C96
Tritanopia (blue-blind)
#5F4660
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #682f98;
/* rgb */ color: rgb(104, 47, 152);
/* oklch */ color: oklch(43.7% 0.165 305.4);
Tailwind
colors: {
  custom: {
    50: '#976cb7',
    500: '#682f98',
    950: '#000000',
  },
}
SCSS
$custom: #682f98;
$custom-light: #976cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#682f98",
  "rgb": {
    "r": 104,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 272.571,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43668,
    "c": 0.16512,
    "h": 305.4
  },
  "luminance": 0.07243
}

Semantic roles & 50–950 ramp

primary
#682F98
secondary
#8EBA69
accent
#DC4C8E
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #682F98

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

Preview Lab → · Contrast checker → · Palette generator →

#682F98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva