#646A17#646A17

#646A17 is a mid, moderate yellow. Relative luminance 0.131; OKLCH L 50.3% C 0.103 H 113.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#646A17
RGBrgb(100, 106, 23)
HSLhsl(64, 64%, 25%)
HSVhsv(64, 78%, 42%)
CMYKcmyk(5.7%, 0%, 78.3%, 58.4%)
CIE-LABlab(42.88, -13.40, 42.64)
CIE-LCHlch(42.88, 44.70, 107.45°)
OKLaboklab(50.3% -0.0412 0.0939)
OKLCHoklch(50.3% 0.103 113.7)
XYZxyz(10.5645, 13.0795, 2.7785)
Luminance0.1308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646A17 #1D176A
analogous
#6A4617 #646A17 #3B6A17
triadic
#646A17 #17646A #6A1764
tetradic
#646A17 #176A46 #1D176A #6A173B
square
#646A17 #176A46 #1D176A #6A173B
split-complementary
#646A17 #173B6A #46176A
monochromatic
#181905 #35380C #646A17 #939C22 #C3CF2D

Accessibility & contrast

On white

5.81
#646A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#646A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646A17
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646A17#FFFFFF#000000##FFFFFF
##646A171.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726405
Deuteranopia (green-blind)
#72661E
Tritanopia (blue-blind)
#6B635A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #646a17;
/* rgb */ color: rgb(100, 106, 23);
/* oklch */ color: oklch(50.3% 0.103 113.7);
Tailwind
colors: {
  custom: {
    50: '#93945b',
    500: '#646a17',
    950: '#000000',
  },
}
SCSS
$custom: #646a17;
$custom-light: #93945b;
$custom-dark: #000000;
JSON
{
  "hex": "#646a17",
  "rgb": {
    "r": 100,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 64.337,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50302,
    "c": 0.10257,
    "h": 113.7
  },
  "luminance": 0.13079
}

Semantic roles & 50–950 ramp

primary
#646A17
secondary
#443DA0
accent
#40E74D
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #646A17

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

Preview Lab → · Contrast checker → · Palette generator →

#646A17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva