#671FA7#671FA7

#671FA7 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.198 H 302.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#671FA7
RGBrgb(103, 31, 167)
HSLhsl(272, 69%, 39%)
HSVhsv(272, 81%, 65%)
CMYKcmyk(38.3%, 81.4%, 0%, 34.5%)
CIE-LABlab(31.00, 55.38, -58.71)
CIE-LCHlch(31.00, 80.71, 313.33°)
OKLaboklab(43.06% 0.1061 -0.1677)
OKLCHoklch(43.06% 0.198 302.3)
XYZxyz(13.0569, 6.6535, 37.1481)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671FA7 #5FA71F
analogous
#231FA7 #671FA7 #A71FA3
triadic
#671FA7 #A7671F #1FA767
tetradic
#671FA7 #A7231F #5FA71F #1FA3A7
square
#671FA7 #A7231F #5FA71F #1FA3A7
split-complementary
#671FA7 #A3A71F #1FA723
monochromatic
#270C40 #471573 #671FA7 #872BD8 #A45FE1

Accessibility & contrast

On white

9.01
#671FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#671FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671FA7
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671FA7#FFFFFF#000000##FFFFFF
##671FA71.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#594564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #671fa7;
/* rgb */ color: rgb(103, 31, 167);
/* oklch */ color: oklch(43.1% 0.198 302.3);
Tailwind
colors: {
  custom: {
    50: '#9965c2',
    500: '#671fa7',
    950: '#000000',
  },
}
SCSS
$custom: #671fa7;
$custom-light: #9965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#671fa7",
  "rgb": {
    "r": 103,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 271.765,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.1984,
    "h": 302.3
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#671FA7
secondary
#8EC65C
accent
#EC3C8F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #671FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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