#671796#671796

#671796 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.189 H 308.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#671796
RGBrgb(103, 23, 150)
HSLhsl(278, 73%, 34%)
HSVhsv(278, 85%, 59%)
CMYKcmyk(31.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(28.64, 54.20, -52.23)
CIE-LCHlch(28.64, 75.27, 316.06°)
OKLaboklab(40.97% 0.1169 -0.1486)
OKLCHoklch(40.97% 0.189 308.2)
XYZxyz(11.4038, 5.6986, 29.3474)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671796 #469617
analogous
#281796 #671796 #961786
triadic
#671796 #966717 #179667
tetradic
#671796 #962817 #469617 #178696
square
#671796 #962817 #469617 #178696
split-complementary
#671796 #869617 #179628
monochromatic
#1E072C #430F61 #671796 #8B1FCB #A845E2

Accessibility & contrast

On white

9.81
#671796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#671796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671796
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671796#FFFFFF#000000##FFFFFF
##6717961.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#5F3A59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #671796;
/* rgb */ color: rgb(103, 23, 150);
/* oklch */ color: oklch(41.0% 0.189 308.2);
Tailwind
colors: {
  custom: {
    50: '#9860b6',
    500: '#671796',
    950: '#000000',
  },
}
SCSS
$custom: #671796;
$custom-light: #9860b6;
$custom-dark: #000000;
JSON
{
  "hex": "#671796",
  "rgb": {
    "r": 103,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 277.795,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40967,
    "c": 0.18907,
    "h": 308.2
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#671796
secondary
#74C345
accent
#F0387C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #671796

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

Preview Lab → · Contrast checker → · Palette generator →

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