#671F98#671F98

#671F98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.184 H 306.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#671F98
RGBrgb(103, 31, 152)
HSLhsl(276, 66%, 36%)
HSVhsv(276, 80%, 60%)
CMYKcmyk(32.2%, 79.6%, 0%, 40.4%)
CIE-LABlab(29.74, 51.92, -51.66)
CIE-LCHlch(29.74, 73.24, 315.14°)
OKLaboklab(41.79% 0.1102 -0.147)
OKLCHoklch(41.79% 0.184 306.9)
XYZxyz(11.7498, 6.1307, 30.2640)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671F98 #50981F
analogous
#2A1F98 #671F98 #981F8C
triadic
#671F98 #98671F #1F9867
tetradic
#671F98 #982A1F #50981F #1F8C98
square
#671F98 #982A1F #50981F #1F8C98
split-complementary
#671F98 #8C981F #1F982A
monochromatic
#220A32 #451565 #671F98 #8929CB #A655DC

Accessibility & contrast

On white

9.43
#671F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#671F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671F98
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671F98#FFFFFF#000000##FFFFFF
##671F981.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#5E3E5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #671f98;
/* rgb */ color: rgb(103, 31, 152);
/* oklch */ color: oklch(41.8% 0.184 306.9);
Tailwind
colors: {
  custom: {
    50: '#9764b7',
    500: '#671f98',
    950: '#000000',
  },
}
SCSS
$custom: #671f98;
$custom-light: #9764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#671f98",
  "rgb": {
    "r": 103,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 275.702,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41786,
    "c": 0.18371,
    "h": 306.9
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#671F98
secondary
#7FC053
accent
#E93F84
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #671F98

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

Preview Lab → · Contrast checker → · Palette generator →

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