#671F8B#671F8B

#671F8B is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.171 H 311.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#671F8B
RGBrgb(103, 31, 139)
HSLhsl(280, 64%, 33%)
HSVhsv(280, 78%, 55%)
CMYKcmyk(25.9%, 77.7%, 0%, 45.5%)
CIE-LABlab(28.72, 49.01, -45.31)
CIE-LCHlch(28.72, 66.74, 317.25°)
OKLaboklab(40.74% 0.1131 -0.1283)
OKLCHoklch(40.74% 0.171 311.4)
XYZxyz(10.7428, 5.7279, 24.9608)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#671F8B #438B1F
analogous
#311F8B #671F8B #8B1F79
triadic
#671F8B #8B671F #1F8B67
tetradic
#671F8B #8B311F #438B1F #1F798B
square
#671F8B #8B311F #438B1F #1F798B
split-complementary
#671F8B #798B1F #1F8B31
monochromatic
#1D0927 #421459 #671F8B #8C2ABD #A94DD7

Accessibility & contrast

On white

9.79
#671F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#671F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #671F8B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##671F8B#FFFFFF#000000##FFFFFF
##671F8B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#094589
Tritanopia (blue-blind)
#623854
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #671f8b;
/* rgb */ color: rgb(103, 31, 139);
/* oklch */ color: oklch(40.7% 0.171 311.4);
Tailwind
colors: {
  custom: {
    50: '#9763ae',
    500: '#671f8b',
    950: '#000000',
  },
}
SCSS
$custom: #671f8b;
$custom-light: #9763ae;
$custom-dark: #000000;
JSON
{
  "hex": "#671f8b",
  "rgb": {
    "r": 103,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 280,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40745,
    "c": 0.17103,
    "h": 311.4
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#671F8B
secondary
#71BA4C
accent
#E74178
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #671F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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