#671F9D#671F9D

#671F9D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.189 H 305.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#671F9D
RGBrgb(103, 31, 157)
HSLhsl(274, 67%, 37%)
HSVhsv(274, 80%, 62%)
CMYKcmyk(34.4%, 80.3%, 0%, 38.4%)
CIE-LABlab(30.15, 53.07, -54.04)
CIE-LCHlch(30.15, 75.74, 314.48°)
OKLaboklab(42.2% 0.1089 -0.154)
OKLCHoklch(42.2% 0.189 305.3)
XYZxyz(12.1679, 6.2979, 32.4663)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671F9D #559D1F
analogous
#281F9D #671F9D #9D1F94
triadic
#671F9D #9D671F #1F9D67
tetradic
#671F9D #9D281F #559D1F #1F949D
square
#671F9D #9D281F #559D1F #1F949D
split-complementary
#671F9D #949D1F #1F9D28
monochromatic
#240B37 #45156A #671F9D #8929D0 #A558DE

Accessibility & contrast

On white

9.29
#671F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#671F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671F9D
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671F9D#FFFFFF#000000##FFFFFF
##671F9D1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#5D405E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #671f9d;
/* rgb */ color: rgb(103, 31, 157);
/* oklch */ color: oklch(42.2% 0.189 305.3);
Tailwind
colors: {
  custom: {
    50: '#9864bb',
    500: '#671f9d',
    950: '#000000',
  },
}
SCSS
$custom: #671f9d;
$custom-light: #9864bb;
$custom-dark: #000000;
JSON
{
  "hex": "#671f9d",
  "rgb": {
    "r": 103,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 274.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.18861,
    "h": 305.3
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#671F9D
secondary
#84C256
accent
#EA3E88
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #671F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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