#671798#671798

#671798 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.191 H 307.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#671798
RGBrgb(103, 23, 152)
HSLhsl(277, 74%, 34%)
HSVhsv(277, 85%, 60%)
CMYKcmyk(32.2%, 84.9%, 0%, 40.4%)
CIE-LABlab(28.81, 54.64, -53.18)
CIE-LCHlch(28.81, 76.24, 315.77°)
OKLaboklab(41.14% 0.1163 -0.1514)
OKLCHoklch(41.14% 0.191 307.5)
XYZxyz(11.5662, 5.7635, 30.2028)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671798 #489817
analogous
#261798 #671798 #981789
triadic
#671798 #986717 #179867
tetradic
#671798 #982617 #489817 #178998
square
#671798 #982617 #489817 #178998
split-complementary
#671798 #899817 #179826
monochromatic
#1F072E #430F63 #671798 #8B1FCD #A846E3

Accessibility & contrast

On white

9.76
#671798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#671798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671798
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671798#FFFFFF#000000##FFFFFF
##6717981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#5F3B5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #671798;
/* rgb */ color: rgb(103, 23, 152);
/* oklch */ color: oklch(41.1% 0.191 307.5);
Tailwind
colors: {
  custom: {
    50: '#9861b7',
    500: '#671798',
    950: '#000000',
  },
}
SCSS
$custom: #671798;
$custom-light: #9861b7;
$custom-dark: #000000;
JSON
{
  "hex": "#671798",
  "rgb": {
    "r": 103,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 277.209,
    "s": 73.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41137,
    "c": 0.1909,
    "h": 307.5
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#671798
secondary
#76C447
accent
#F0377E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #671798

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

Preview Lab → · Contrast checker → · Palette generator →

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