#671A98#671A98

#671A98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.188 H 307.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#671A98
RGBrgb(103, 26, 152)
HSLhsl(277, 71%, 35%)
HSVhsv(277, 83%, 60%)
CMYKcmyk(32.2%, 82.9%, 0%, 40.4%)
CIE-LABlab(29.13, 53.69, -52.65)
CIE-LCHlch(29.13, 75.20, 315.56°)
OKLaboklab(41.36% 0.1142 -0.1498)
OKLCHoklch(41.36% 0.188 307.3)
XYZxyz(11.6292, 5.8895, 30.2238)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671A98 #4B981A
analogous
#281A98 #671A98 #981A8A
triadic
#671A98 #98671A #1A9867
tetradic
#671A98 #98281A #4B981A #1A8A98
square
#671A98 #98281A #4B981A #1A8A98
split-complementary
#671A98 #8A981A #1A9828
monochromatic
#20082F #441164 #671A98 #8A23CC #A74CE0

Accessibility & contrast

On white

9.64
#671A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#671A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671A98
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671A98#FFFFFF#000000##FFFFFF
##671A981.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#5F3C5A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #671a98;
/* rgb */ color: rgb(103, 26, 152);
/* oklch */ color: oklch(41.4% 0.188 307.3);
Tailwind
colors: {
  custom: {
    50: '#9862b7',
    500: '#671a98',
    950: '#000000',
  },
}
SCSS
$custom: #671a98;
$custom-light: #9862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#671a98",
  "rgb": {
    "r": 103,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 276.667,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41362,
    "c": 0.1884,
    "h": 307.3
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#671A98
secondary
#7AC24B
accent
#EE3A80
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #671A98

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

Preview Lab → · Contrast checker → · Palette generator →

#671A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva