#646817#646817

#646817 is a mid, moderate yellow. Relative luminance 0.127; OKLCH L 49.8% C 0.100 H 112.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#646817
RGBrgb(100, 104, 23)
HSLhsl(63, 64%, 25%)
HSVhsv(63, 78%, 41%)
CMYKcmyk(3.8%, 0%, 77.9%, 59.2%)
CIE-LABlab(42.27, -12.29, 42.06)
CIE-LCHlch(42.27, 43.82, 106.29°)
OKLaboklab(49.81% -0.0382 0.0927)
OKLCHoklch(49.81% 0.1 112.4)
XYZxyz(10.3608, 12.6721, 2.7106)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646817 #1B1768
analogous
#684417 #646817 #3C6817
triadic
#646817 #176468 #681764
tetradic
#646817 #176844 #1B1768 #68173C
square
#646817 #176844 #1B1768 #68173C
split-complementary
#646817 #173C68 #441768
monochromatic
#181906 #34360C #646817 #949A22 #C4CC2D

Accessibility & contrast

On white

5.94
#646817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#646817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646817
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646817#FFFFFF#000000##FFFFFF
##6468171.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706306
Deuteranopia (green-blind)
#71651E
Tritanopia (blue-blind)
#6B6159
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #646817;
/* rgb */ color: rgb(100, 104, 23);
/* oklch */ color: oklch(49.8% 0.100 112.4);
Tailwind
colors: {
  custom: {
    50: '#93935b',
    500: '#646817',
    950: '#000000',
  },
}
SCSS
$custom: #646817;
$custom-light: #93935b;
$custom-dark: #000000;
JSON
{
  "hex": "#646817",
  "rgb": {
    "r": 100,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 62.963,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49807,
    "c": 0.10023,
    "h": 112.4
  },
  "luminance": 0.12672
}

Semantic roles & 50–950 ramp

primary
#646817
secondary
#413D9E
accent
#41E749
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0D0D04
muted
#7E7D79

Preview Lab

Preview with #646817

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

Preview Lab → · Contrast checker → · Palette generator →

#646817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva