Exact Color Match Test

๐Ÿ“ Syntax

ColorSyntaxExampleOutput
HEX`#RRGGBB``#0969DA`#0969DA
RGB`rgb(R,G,B)``rgb(9, 105, 218)`rgb(9, 105, 218)
HSL`hsl(H,S,L)``hsl(212, 92%, 45%)`hsl(212, 92%, 45%)

e.g. The background color is #ffffff for light mode and #000000 for dark mode.

โœ… Color Preview

Pure color values (no leading/trailing characters):

  • #0969DA
  • #096
  • #FF0000
  • #00FF00
  • rgb(255, 0, 0)
  • rgb(0, 255, 0)
  • hsl(240, 100%, 50%)
  • hsl(120, 100%, 50%)

โŒ Regular Code

With leading or trailing characters:

  • test #0969DA
  • #0969DA test
  • color: #0969DA
  • #0969DA (leading space)
  • #0969DA (trailing space)
  • background-color: rgb(255, 0, 0)
  • using hsl(240, 100%, 50%) color
0%